need to set sort parameter in all cases