Skip to content

Commit

Permalink
Sort HUD list alphabetically by default
Browse files Browse the repository at this point in the history
  • Loading branch information
CriticalFlaw committed Aug 21, 2024
1 parent 8dcffe0 commit ded5299
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TF2HUD.Editor/ViewModels/HomePageViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ private set
public HomePageViewModel(MainWindowViewModel mainWindowViewModel, IEnumerable<HUD> hudList)
{
_mainWindowViewModel = mainWindowViewModel;
_hudList = new ObservableCollection<HUDButtonViewModel>(hudList.Select((hud, i) => new HUDButtonViewModel(hud, i % 2, i / 2)));
_hudList = new ObservableCollection<HUDButtonViewModel>(hudList.Select((hud, i) => new HUDButtonViewModel(hud, i % 2, i / 2)).OrderBy(x => x.Name));
HUDListView.Filter = Filter;
_info = new AppInfoViewModel();
_mainWindowViewModel.PropertyChanged += MainWindowViewModelPropertyChanged;
Expand Down

0 comments on commit ded5299

Please sign in to comment.