Sort stream

library operator
ID: 72096116-885a-4218-a726-c101f6839cd5
Sorts a stream, using a comparator delegate specifying the order.

Implementation

The implementation of Sort stream makes use of the following 3 operators.

1
Creates stream containing one single generic item.
1
Merges two streams using a compare delegate deciding which item has precedence.
1
Reduces the items of a stream pairwise using a reducer delegate.

Used in

The Sort stream operator is used by 1 operators.

Sorts a stream of primitive items.