示例#1
0
        protected virtual Task SortItemsByMetaData(string tag, bool descending)
        {
            var comparer = new PlaylistItemMetaDataComparer(tag);

            comparer.InitializeComponent(this.Core);
            return(this.SortItems(comparer, descending));
        }
示例#2
0
        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);
        }