fix sorting again