pub fn sortSpanUnstable(self: Self, a: usize, b: usize, ctx: anytype) void self: Selfa: usizeb: usizectx652
653
654 pub fn sortSpanUnstable(self: Self, a: usize, b: usize, ctx: anytype) void {
self.sortInternal(a, b, ctx, .unstable);
}
Sorts only the subsection of items between indices
aandb(excludingb) This function does NOT guarantee a stable sort, i.e the relative order of equal elements may change during sorting. Due to the weaker guarantees of this function, this may be faster than the stablesortSpanmethod. Read more about stable sorting here: https://en.wikipedia.org/wiki/Sorting_algorithm#Stabilityctxhas the following method:fn lessThan(ctx: @TypeOf(ctx), a_index: usize, b_index: usize) bool