From cb23e1e765a00f53b58281eba1b4dcaefc4c2492 Mon Sep 17 00:00:00 2001 From: Jordan Date: Sat, 17 Dec 2022 03:55:30 -0500 Subject: [PATCH] Prepping for release --- VTOL_2.0.0/Pages/Page_Thunderstore.xaml.cs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/VTOL_2.0.0/Pages/Page_Thunderstore.xaml.cs b/VTOL_2.0.0/Pages/Page_Thunderstore.xaml.cs index 90bf7a30..cee79177 100644 --- a/VTOL_2.0.0/Pages/Page_Thunderstore.xaml.cs +++ b/VTOL_2.0.0/Pages/Page_Thunderstore.xaml.cs @@ -1558,13 +1558,14 @@ public List orderlist(List List) } else if (Sort.SelectedItem.ToString().Replace("System.Windows.Controls.ComboBoxItem:", "").Trim().Contains("Installed")) { - - List = List.OrderByDescending(x => x.Button_label.ToString().Contains("Re-Install")).ToList(); + // List = List.OrderByDescending(x => x.Button_label.ToString().Contains("Re-Install")).ToList(); + List = List.Where(item => item.Button_label.ToString().Contains("Re-Install")).OrderBy(ob => ob.Name).ToList(); } else if (Sort.SelectedItem.ToString().Replace("System.Windows.Controls.ComboBoxItem:", "").Trim().Contains("Update")) { - List = List.OrderByDescending(x => x.Button_label.Contains("Update")).ToList(); + // List = List.OrderByDescending(x => x.Button_label.Contains("Update")).ToList(); + List = List.Where(item => item.Button_label.ToString().Contains("Update")).OrderBy(ob => ob.Name).ToList(); } else @@ -1606,12 +1607,15 @@ public List orderlist(List List) else if (Sort.SelectedItem.ToString().Replace("System.Windows.Controls.ComboBoxItem:", "").Trim().Contains("Installed")) { - List = List.OrderByDescending(x => x.Button_label.ToString().Contains("Re-Install")).ToList(); + // List = List.OrderByDescending(x => x.Button_label.ToString().Contains("Re-Install")).ToList(); + List = List.Where(item => item.Button_label.ToString().Contains("Re-Install")).OrderByDescending(ob => ob.Name).ToList(); + } else if (Sort.SelectedItem.ToString().Replace("System.Windows.Controls.ComboBoxItem:", "").Trim().Contains("Update")) { - List = List.OrderBy(x => x.Button_label.Contains("Update")).ToList(); + // List = List.OrderBy(x => x.Button_label.Contains("Update")).ToList(); + List = List.Where(item => item.Button_label.ToString().Contains("Update")).OrderByDescending(ob => ob.Name).ToList(); } else