fn pdq(comptime T: type, items: []T, context: anytype, comptime lessThanFn: fn (@TypeOf(context), T, T) bool) void

Unstable in-place sort. n best case, n*log(n) worst case and average case. log(n) memory (no allocator required).

Sorts in ascending order with respect to the given lessThan function.

Parameters

T: type,
items: []T,
context: anytype,
lessThanFn: fn (@TypeOf(context), T, T) bool,