sorting bug again