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
var MultiSortCollection = Backbone.Collection.extend({ | |
/** | |
* Sort by supplied attributes. First param is sorted first, and | |
* last param is final subsort | |
* @param {String} sortAttributes | |
* @example collection.sortBy("last_name","first_name") | |
*/ | |
sortBy : function(sortAttributes){ | |
var attributes = arguments; |