builtins.sort takes a nix lambda as a comparator, and calls C++'s std::stable_sort… but std::stable_sort is UB if the comparator is not a valid partial ordering!
github.com/Voultapher/s...
builtins.sort takes a nix lambda as a comparator, and calls C++'s std::stable_sort… but std::stable_sort is UB if the comparator is not a valid partial ordering!
github.com/Voultapher/s...
rust-lang.github.io/rfcs/3307-de...
rust-lang.github.io/rfcs/3307-de...