stevendesu / jsindex

1 stars 0 forks source link

New feature: Sorting by index #12

Open stevendesu opened 5 years ago

stevendesu commented 5 years ago

This is something that didn't cross my mind:

If we sort the index and then concatenate the records referenced by the index, we can efficiently sort on any index column. This could be a useful feature, especially in combination with #3 and #11 to allow chained index-based operations. Consider the following:

const timeSeriesData = data.merge(...).search(...).sort(...);

So beautiful

If we were already at v1.0.0 then this would be a "minor" update (adding a new feature), but during the v0.x.x alpha stage, I guess this is just a "patch" update (non-breaking change to the API)