fix typo setting sequence of get parameters in sort

Found a small issue that prevents sort from handling multiple get parameters.