diff --git a/src/ui/Forms/BatchConvert.cs b/src/ui/Forms/BatchConvert.cs index 9e8ec11fc..71e77afee 100644 --- a/src/ui/Forms/BatchConvert.cs +++ b/src/ui/Forms/BatchConvert.cs @@ -3992,6 +3992,11 @@ namespace Nikse.SubtitleEdit.Forms return; } + for (var i = 0; i < listViewInputFiles.Columns.Count; i++) + { + ListViewSorter.SetSortArrow(listViewInputFiles.Columns[i], SortOrder.None); + } + if (!(listViewInputFiles.ListViewItemSorter is ListViewSorter sorter)) { sorter = new ListViewSorter @@ -4014,7 +4019,10 @@ namespace Nikse.SubtitleEdit.Forms sorter.IsNumber = false; sorter.IsDisplayFileSize = e.Column == columnHeaderSize.DisplayIndex; } + listViewInputFiles.Sort(); + + ListViewSorter.SetSortArrow(listViewInputFiles.Columns[e.Column], sorter.Descending ? SortOrder.Descending : SortOrder.Ascending); } private void buttonBrowseEncoding_Click(object sender, EventArgs e)