Fixed recently added artists sort , fixes #632

This commit is contained in:
emeric
2025-03-09 12:05:57 +01:00
parent 8b8105c515
commit 38fde8bae0
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -169,10 +169,10 @@ namespace lms::db
query.orderBy("RANDOM()");
break;
case ArtistSortMethod::LastWrittenDesc:
query.orderBy("MAX(t.file_last_write) DESC");
query.orderBy("MAX(t.file_last_write) DESC, a.sort_name");
break;
case ArtistSortMethod::AddedDesc:
query.orderBy("MAX(t.file_added) DESC");
query.orderBy("MIN(t.file_added) DESC, a.sort_name");
break;
case ArtistSortMethod::StarredDateDesc:
assert(params.starringUser.isValid());