sort group parameter by keys