1 contributor
Like
Install sort-by as a package?
Copied
npm i @bit/justin-capalbo.ramda.sort-by
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example modifieddraft
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
No preview available
chevron_left
chevron_right
sortBy (
fn:
Function
,list:
) : Array
Array
Sorts the list according to the supplied function.
Example
Arguments
fn:
Function
list:
Array
The list to sort.
Returns
Array
A new list sorted by the keys generated by `fn`.