fn heapContext(a: usize, b: usize, context: anytype) void

Unstable in-place sort. O(n*log(n)) best case, worst case and average case. O(1) memory (no allocator required). context must have methods swap and lessThan, which each take 2 usize parameters indicating the index of an item. Sorts in ascending order with respect to lessThan.

Parameters

a: usize,
b: usize,
context: anytype,