Commit 0f324b06 authored by Joost Rijneveld's avatar Joost Rijneveld
Browse files

Merge branch '304-events-list-sort' into 'master'

Fix order events in list view

Closes #304

See merge request !331
parents a2d3b555 3ee1f74a
......@@ -24,7 +24,7 @@ ListView = View.extend({ // make a subclass of View
}
events.sort(function(a, b) {
return a.start > b.start;
return a.start < b.start ? -1 : a.start > b.start ? 1 : 0;
});
for (var i = 0; i < events.length; i++) {
......
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