Expand description
A port of Go’s sort.Sort / slices.SortFunc (pattern-defeating quicksort, Go 1.19+).
Prometheus orders results with these, and with comparators that are not total orders
(NaN ranks first in Less against everything, natsort.Compare holds both ways for “1”
and “01”). The order of such elements is part of the result, and Rust’s sorts may panic on
such comparators, so the exact algorithm is reproduced.
Structs§
- Sorter 🔒
Enums§
- Hint 🔒