Sorting data is obviously a common use case, but these are a few features that I think would be useful:
- Sorting a single array, for some types it could even happen without moving data
- Lexical sort using multiple columns
- Sorting to indices which gives us an array to use with
take, and which passing around or holding in memory is much cheaper.
- Sorting with a limit - only returning
limit items
- Sorting can be in both ascending and descending orders.
References
Sorting data is obviously a common use case, but these are a few features that I think would be useful:
take, and which passing around or holding in memory is much cheaper.limititemsReferences