Module

std::sort

Records

record Sort
Members
static stableLexicalStrings(values: &mut Vector<String>): void
static stableStrings(values: &mut Vector<String>, compare: fn(&String, &String) -> i32): void

Sorts 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): void

Sorts 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): i32
function lexicalStringCompare(left: &String, right: &String): i32