Returns a generator that yields elements from the input iterable in sorted order.
The type of elements in the iterable
The comparison function to determine sort order
Elements from the input iterable in sorted order
G.pipe( [3, 1, 4, 1, 5], G.sort((a, b) => a - b), G.array) // [1, 1, 3, 4, 5] Copy
G.pipe( [3, 1, 4, 1, 5], G.sort((a, b) => a - b), G.array) // [1, 1, 3, 4, 5]
Returns a generator that yields elements from the input iterable in sorted order.