Commit e6490585 authored by tvbussel's avatar tvbussel
Browse files

Fix order events in list view

parent e653498d
......@@ -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