sorting.quick: better interface, allow comparison to be passed in.