Expand description

Yet another sort crate (in place), porting Golang sort package to Rust.

Traits

Golang sort interface in Rust.
Golang’s sort.Slice, sort.SliceStable and sort.SliceIsSorted in Rust

Functions

Golang’s sort.Search in Rust.
Returns whether the slice x is sorted according to the provided less function.
Sort data. It makes one call to data.len to determine n and O(n*log(n)) calls to data.less and data.swap. The sort is not guaranteed to be stable.
Sort data in reverse order.
Slice sorts the slice x given the provided less function.
Sorts the slice data using the provided less function, keeping equal elements in their original order.
Sort data (stable).
Sort data in reverse order (stable).