fix sort params passing bug