This repository has been archived by the owner on Jan 12, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sorts the collection by the given attribute of each item. Collection#sortBy will trigger a 'update' event on the collection, making views update automatically. Example: @collection = new Serenade.Collection([{name:'Jonas'}, {name:'CJ'}]) @collection.sortBy('name') @collection.get(0) # Returns the `{name:'CJ'}` object
- Loading branch information
Showing
2 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters