diff --git a/onionshare_gui/file_selection.py b/onionshare_gui/file_selection.py index 300525be..391e6a30 100644 --- a/onionshare_gui/file_selection.py +++ b/onionshare_gui/file_selection.py @@ -136,6 +136,8 @@ class FileList(QtWidgets.QListWidget): return self.filenames.append(filename) + # Re-sort the list internally + self.filenames.sort() fileinfo = QtCore.QFileInfo(filename) basename = os.path.basename(filename.rstrip('/'))