remove sort function