protected virtual Task SortItemsByMetaData(string tag, bool descending) { var comparer = new PlaylistItemMetaDataComparer(tag); comparer.InitializeComponent(this.Core); return(this.SortItems(comparer, descending)); }
protected virtual async Task <int> SortItemsByTag(string tag, bool descending) { var comparer = new PlaylistItemMetaDataComparer(tag); comparer.InitializeComponent(this.Core); await this.SortItems(comparer, descending).ConfigureAwait(false); return(comparer.Changes); }