fixing sort 2.0