networkSortUpTo

Sort at most the first n elements of r using comparison less using a networking sort.

Note: Sorting networks are not unique, not even optimal solutions.

networkSortUpTo
(
uint n
alias less = "a < b"
Range
)
(
Range r
)
if (
n >= 2 &&
isRandomAccessRange!Range
)

See Also

Meta