added comparisonSort