0.0.3 • Published 2 years ago
sort-with v0.0.3
a sort utils stolen from ramda.js
usage
import {sortWith, ascendBy, descendBy } from 'sort-with'
sortWith(
[ascendBy('title'), descendBy('sorce')],
movies
)
// or
const sort = sortWith([ascendBy('title'), descendBy('sorce')])
const sorted = sort(movies)
thx for reading here