change passing of sorting parameter