fixed group sorting