Skip to main content
Module

x/rambda/source/sortByPath.js

Faster and smaller alternative to Ramda
Go to Latest
File
import {path} from './path'import {sortBy} from './sortBy'
export function sortByPath(sortPath, list) { if (arguments.length === 1) return _list => sortByPath(sortPath, _list)
return sortBy(path(sortPath), list)}