Fixed indenting, up and down arrows, basic sorting

This commit is contained in:
2016-01-31 00:03:55 +08:00
parent c17412477d
commit e1bb801e9f
4 changed files with 74 additions and 91 deletions
+5
View File
@@ -29,6 +29,11 @@ localforageBackbone
return Backbone.sync.apply(this, arguments);
},
/** sort by priority then created date **/
comporator: function(child){
return [child.get('priority'),child.get('createdAt')];
},
url: '/tasks'
});