renamed from compareSort to compare-sort