added sorting
change to sorting