fix sort params