Fixed method of passing parameters to sort action