fix sort parameter.