Fix newly created files not sorted correctly

(cherry picked from commit e69d40cad9)
This commit is contained in:
Robin Arys 2021-10-23 09:51:26 +02:00 committed by Rémi Verschelde
parent 5bc44b53f6
commit 0bbdfd420a
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

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