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) -> ...@@ -25,9 +25,9 @@ exports.history = (req, res) ->
delete json.files delete json.files
return json return json
compare = (a,b) -> compare = (a,b) ->
if a.end < b.end if a.start < b.start
return -1 return -1
if a.end > b.end if a.start > b.start
return 1 return 1
return 0 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