DONE WITH SORT FUNCTION