powmedia/backbone-forms — pull request #314 by exussum12 (2013-10-31 11:07:51+00:00)
Title: Sorting Lists

Refs

#312

Called like this

var schema = {
//List
textList: { type: 'List', itemType: 'Text', validators: ['required'], sort:true },
};

true sorts based on getValue()
a function is used instead when passed that way, function requires 2 arguments and should follow this https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort