Fix newly created files not sorted correctly

This commit is contained in:
Robin Arys 2021-10-23 09:51:26 +02:00
parent f1f51f5d4b
commit e69d40cad9

View file

@ -688,9 +688,11 @@ void FileSystemDock::_sort_file_info_list(List<FileSystemDock::FileInfo> &r_file
r_file_list.reverse();
break;
case FILE_SORT_NAME_REVERSE:
r_file_list.sort();
r_file_list.reverse();
break;
default: // FILE_SORT_NAME
r_file_list.sort();
break;
}
}