This is the default sort, the script should be improved to change the criteria according to *SETTINGS[:sortarg]*.