Merge branch 'main' into feature/shuffle
This commit is contained in:
@@ -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])
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user