I am trying to sort a collection in a Marionette.CompositeView
.
I have a collection which looks like this:
[
{id: 1, name: \'bar\'},
I believe the Marionette guys are considering building this into Marionette, but until that time, I've build a little mixin called Sorted which you can mix into your CollectionView
and CompositeView
classes. It's been heavily used in a production environment for Gitter for a long time and we find it works very well..