this.showChildView('list', new MySortedList({
collection: myList
}));
this.showChildView('list2', new MySortedList({
collection: myList,
viewComparator: (model) => {
return -1 * model.get('msg').length
}
}));
this.showChildView('list3', new MySortedList({
collection: myList,
viewComparator: (model) => {
return Math.random()
}
}));
This is a demo showing the same backing collection sorted in three different ways at the view layer.