Proper sorting order for dired mode.