diff --git a/src/KubeUI/Views/ResourceListView.cs b/src/KubeUI/Views/ResourceListView.cs index c6ed36b6..78bd02fa 100644 --- a/src/KubeUI/Views/ResourceListView.cs +++ b/src/KubeUI/Views/ResourceListView.cs @@ -85,7 +85,10 @@ private void GenerateGrid() _grid.Columns.Add(column); - Dispatcher.UIThread.Post(() => column.Sort(columnDefinition.Sort == SortDirection.Ascending ? ListSortDirection.Ascending : ListSortDirection.Descending)); + if (columnDefinition.Sort != SortDirection.None) + { + Dispatcher.UIThread.Post(() => column.Sort(columnDefinition.Sort == SortDirection.Ascending ? ListSortDirection.Ascending : ListSortDirection.Descending)); + } } catch (Exception ex) {