aboutsummaryrefslogtreecommitdiff
path: root/sort.c (follow)
Commit message (Collapse)AuthorAge
* New utility routine: sort with a context parameter.Simon Tatham2019-04-05
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.