fix sort bug again