sorting reworded