std::sort
Records
record SortMembers
static stableLexicalStrings(values: &mut Vector<String>): voidstatic stableStrings(values: &mut Vector<String>, compare: fn(&String, &String) -> i32): voidSorts owned strings in-place using a stable insertion sort.
This implementation uses Vector::get + Vector::set with cloned values
instead of raw indexed moves, so it is safe for the selfhost build paths
that sort non-Copy String values today.
static stableVector(values: &mut Vector<T>, compare: fn(&T, &T) -> i32): voidSorts a vector in-place using the vector’s generic stable sorter.
This is the general comparator-based entry point for element types that
can be safely moved by the current Vector::sort implementation. Use
stableStrings for owned String values until generic non-Copy moves are
supported by the compiler/runtime stack.
Functions
function __closure_thunk_0(__closure_env_0: *mut u8, left: &String, right: &String): i32function lexicalStringCompare(left: &String, right: &String): i32