Let's say I have a simple Backbone.Collection with some models in it:
var Library = Backbone.Collection.extend({ model: Book }); lib = new Library( [Book1, Book2, Book3, Book4, Book5, Book6] ]);
How can I move a model in a collection? 5th - to 2nd position? Thus, sorting by model field is not performed, but the manual sorting order is simply changed.
Note. I simplified the Book1, ... models. They are, of course, Backbone.Model s.
acme
source share