nxt.sort_ex

Extensions to std.algorithm.sort.

Members

Functions

randomlyShuffled
auto randomlyShuffled(Range r, RandomGen gen)

Functional version of std.random.randomShuffle. * * Returns: r randomly shuffled. * * If needed a GC-copy of r is allocated, sorted and returned.

randomlyShuffled
auto randomlyShuffled(Range r)
rsortBy
auto rsortBy(R r)

Reverse sort random access range R of aggregates on value of calls to xtor.

sortBy
auto sortBy(R r)

Sort random access range R of aggregates on value of calls to xtor.

sortSubRange
auto sortSubRange(R range, size_t i, size_t j)

Sort sub-range of subrange defined by index range i..j.

sorted
auto sorted(R r)

Meta