Sort list of parameters.