Fixing formatting in sorting.