From 892964aafd7cedf66550dd51ea53ad41b49ac1a9 Mon Sep 17 00:00:00 2001 From: Kinematics Date: Mon, 16 Mar 2015 22:39:02 -0500 Subject: [PATCH] Make sure the combo box sorts by the quest display name. --- NetTally/MainWindow.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NetTally/MainWindow.xaml.cs b/NetTally/MainWindow.xaml.cs index bc808d68..54e4ec13 100644 --- a/NetTally/MainWindow.xaml.cs +++ b/NetTally/MainWindow.xaml.cs @@ -46,7 +46,7 @@ public MainWindow() // Set up view for binding QuestCollectionView = CollectionViewSource.GetDefaultView(questCollection); // Sort the collection view - var sortDesc = new SortDescription("Name", ListSortDirection.Ascending); + var sortDesc = new SortDescription("DisplayName", ListSortDirection.Ascending); QuestCollectionView.SortDescriptions.Add(sortDesc); // Set the current item QuestCollectionView.MoveCurrentTo(questCollection[wrapper.CurrentQuest]);