sorting finally effing worked