Commit 19cce685 authored by Leo Iannacone's avatar Leo Iannacone

always send history sorted by date start

parent 13ee1d33
......@@ -25,9 +25,9 @@ exports.history = (req, res) ->
delete json.files
return json
compare = (a,b) ->
if a.end < b.end
if a.start < b.start
return -1
if a.end > b.end
if a.start > b.start
return 1
return 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment