Merge branch 'main' into feature/shuffle

This commit is contained in:
Siiiiinth
2026-01-25 18:48:23 +01:00
5 changed files with 12 additions and 4 deletions
+7 -1
View File
@@ -276,7 +276,13 @@ func (a *ArtistPage) sortAlbumsSlices(slices ...[]*mediaprovider.Album) {
}
case discographySorts[2]: /*name*/
sortFunc = func(x, y int) bool {
return curSlice[x].Name < curSlice[y].Name
sortStr := func(a *mediaprovider.Album) string {
if a.SortName != "" {
return a.SortName
}
return a.Name
}
return sortStr(curSlice[x]) < sortStr(curSlice[y])
}
}