I have a list of users (six to be exact) in a collection with \'firstname\', \'lastname\' properties. Doing a fetch, the comparator below sorts them by \'firstname\', and it wor
The sortBy function does not sort the objects in the current collection. It returns a sorted collection:
sortBy
var sortedCollection = this.collection.sortBy(function(user){ return user.get("lastname").toLowerCase(); });
Now you can use sortedCollection and it will be sorted correctly.
sortedCollection