One-com / knockout-projections

Knockout.js observable arrays get smarter
5 stars 2 forks source link

SortBy: forward the underlying array when no sorting order is specified #5

Open sunesimonsen opened 9 years ago

sunesimonsen commented 9 years ago

This was initially requested by @AdamWillden. I think it would be a nice addition, but I can't limit the current performance.

We would need to detect the case where the mapping returns an empty array and forward the underlying array af the output. When the mapping returns a new sorting order we need to do a complete re-sort of the items.