AmpersandJS / ampersand-filtered-subcollection

Filterable, sortable, proxy of a collection that behaves like a collection.
MIT License
11 stars 7 forks source link

Order doesn't align with parent Collection #25

Open adamyonk opened 9 years ago

adamyonk commented 9 years ago

I'm seeing an issue where when something gets filtered out of the filtered collection (because of filter/watched), and then is later added back to the filtered collection, regardless of where it was in the order before, it gets put at the beginning (index 0) of the filtered collection. Is this known and you just have to set up a comparator to match the order with the parent collection?

wraithgar commented 9 years ago

This is not known and is probably due to some disconnect between the assumptions being made between what events we will get from collection. Got an example of this so we can debug it?

herkyl commented 8 years ago

This issue should be part of #27. Once it get's merged I will write tests for sorting the collection when adding models