Sort parameters by key.