sort bug