Order albums by full original date. Fixes #1452

This commit is contained in:
Deluan
2023-05-22 23:49:50 -04:00
parent 11f33ff8b6
commit 7d0656f44a
3 changed files with 12 additions and 6 deletions
+7 -5
View File
@@ -97,14 +97,16 @@ func (r sqlRepository) buildSortOrder(sort, order string) string {
}
func splitFunc(delimiter rune) func(c rune) bool {
open := false
open := 0
return func(c rune) bool {
if open {
open = c != ')'
if c == '(' {
open++
return false
}
if c == '(' {
open = true
if open > 0 {
if c == ')' {
open--
}
return false
}
return c == delimiter