Skip to content

Commit

Permalink
order downloaded playlists
Browse files Browse the repository at this point in the history
  • Loading branch information
kkuepper committed Jul 11, 2024
1 parent 039052b commit 86a6851
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ private async Task<IEnumerable<DocumentPO>> BuildDownloadedCuratedPlaylists()
var documents = new List<DocumentPO>();
IList<Playlist> playlists = await Client.Playlist.GetAll(CachePolicy.UseCache);
var downloadedPlaylistIds = await _playlistOfflineStorage.GetPlaylistIds();
foreach (var playlist in playlists)
foreach (var playlist in playlists.OrderBy(x => x.Title))
{
if (downloadedPlaylistIds.Contains(playlist.Id))
{
Expand Down

0 comments on commit 86a6851

Please sign in to comment.