1 Commits

Author SHA1 Message Date
5c4d6b8f35 New utility routine: sort with a context parameter.
I'm about to have a need to sort an array based on auxiliary data held
in a variable that's not globally accessible, so I need a sort routine
that accepts an extra parameter and passes it through to the compare
function.

Sorting algorithm is heapsort, because it's the N log N algorithm I
can implement most reliably.
2019-04-05 19:23:21 +01:00