worked on sorting