fixed sorting error (Comparison method violates its general contract)