mirror of
https://github.com/wassname/HackFlowy.git
synced 2026-07-26 13:08:37 +08:00
Fixed indenting, up and down arrows, basic sorting
This commit is contained in:
@@ -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'
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user