Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Conversation

@rektide
Copy link

@rektide rektide commented Feb 7, 2015

I'm looking to get information about the order of my data, but I don't want to actually sort the data. So I drew up this; sortOrder. It returns an array of indexes, such that if you step through the array and take each value as an index to be looked up in your collection (lookup that index in your collection), you'll iterate through the collection in sort-order.

@rektide rektide force-pushed the feature-sort-order branch from 3dc7d0c to 94bc65d Compare February 7, 2015 19:12
@jdalton
Copy link
Contributor

jdalton commented Feb 7, 2015

Thanks @rektide but I think this fits better as a mixin. lodash-node is only a build of lodash and is deprecated at that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants