sortWith
sortWith<
A>(ord): (data) => readonlyA[]
Defined in: Data/Arr.ts:382
Sorts an array using an Ordering<A>. Returns a new array without mutating the original.
Use this over sortBy when you have a typed Ordering<A> from the Ordering module.
Type Parameters
Section titled “Type Parameters”A
Parameters
Section titled “Parameters”Ordering<A>
Returns
Section titled “Returns”(data) => readonly A[]