sort aggregate cols