Updated the sort order for paths