pub fn deterministic_sort<T>(items: &mut [T], key_fn: impl Fn(&T) -> u64)
Deterministic URL ordering for consistent output.