[cvs-nhc98] patch applied (hat): Update sortBy to a stable O(n log n) mergesort.