AmpersandJS / ampersand-filtered-subcollection

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

no test for comparator function #11

Closed wraithgar closed 9 years ago

wraithgar commented 9 years ago

https://github.com/AmpersandJS/ampersand-subcollection/issues/48

jrmyio commented 9 years ago

" If you pass a function, it will be passed the model and should return the value from the model that should be used to sort. If you pass a function that names two incoming arguments it will be used as a native Array.prototype.sort, where you get passed two models and return a 1, 0, -1 to specify how they compare."

I only get a single object... the second arguments is an integer?

lukekarrys commented 9 years ago

Fixed by #23