Skip to content

Commit

Permalink
Prepping for release
Browse files Browse the repository at this point in the history
  • Loading branch information
BigSpice committed Dec 17, 2022
1 parent b208630 commit cb23e1e
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions VTOL_2.0.0/Pages/Page_Thunderstore.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1558,13 +1558,14 @@ public List<Grid_> orderlist(List<Grid_> 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
Expand Down Expand Up @@ -1606,12 +1607,15 @@ public List<Grid_> orderlist(List<Grid_> 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
Expand Down

0 comments on commit cb23e1e

Please sign in to comment.