public void OrderYoutubeSongsByTitle() { this.youtubeSongOrderFunc = SortHelpers.GetOrderByTitle <YoutubeSong>(this.currentYoutubeSongTitleOrder); SortHelpers.InverseOrder(ref this.currentYoutubeSongTitleOrder); this.OnPropertyChanged(vm => vm.SelectableYoutubeSongs); }
protected void ApplyOrder(Func <SortOrder, Func <IEnumerable <T>, IOrderedEnumerable <T> > > orderFunc, ref SortOrder sortOrder) { this.SongOrderFunc = orderFunc(sortOrder); SortHelpers.InverseOrder(ref sortOrder); this.SelectableSongs = this.SongOrderFunc(this.SelectableSongs); }
public void OrderLocalSongsByTitle() { this.localSongOrderFunc = SortHelpers.GetOrderByTitle <Song>(this.currentLocalSongTitleOrder); SortHelpers.InverseOrder(ref this.currentLocalSongTitleOrder); this.OnPropertyChanged(vm => vm.SelectableLocalSongs); }