Skip to content

Commit

Permalink
feat: show playlist in last_modified desc order
Browse files Browse the repository at this point in the history
  • Loading branch information
Yesterday17 committed Aug 10, 2024
1 parent e7219bb commit b647370
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/providers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ final playlistProvider = StreamProvider((final ref) {
final db = ref.read(localDatabaseProvider);
final playlist = db.playlist.select()
..where((tbl) => tbl.owner
.equals(info?.user.userId ?? '__ANNIV_PLACEHOLDER_SHOULD_NOT_EXIST__'));
.equals(info?.user.userId ?? '__ANNIV_PLACEHOLDER_SHOULD_NOT_EXIST__'))
..orderBy([
(u) => OrderingTerm(expression: u.lastModified, mode: OrderingMode.desc)
]);
return playlist.watch();
});
final favoriteTracksProvider = StreamProvider((final ref) =>
Expand Down

0 comments on commit b647370

Please sign in to comment.