如何处理共享相同 collection 的多个 marionette CollectionView

How to handle multiple marionette CollectionViews sharing the same collection

我有一个页面需要显示多个 collection 以不同方式排序的小方框。

是否有事件可用于在渲染之前对 collection 进行排序并在所有 CollectionView 中使用相同的 collection?或者我应该制作 N 个副本 collection 以不同的方式排序并自己连接事件?

当我 add/remove 来自 collection 的项目时,我真的希望所有视图都能更新。

CollectionView allows for a custom viewComparator option if you want your CollectionView's children to be rendered with a different sort order than the underlying Backbone collection uses.