Use six digit sort name padding
This commit is contained in:
parent
d04cd4ce4f
commit
6ac0cf358a
1 changed files with 2 additions and 2 deletions
|
@ -367,8 +367,8 @@ class SortName(name: String, musicSettings: MusicSettings) : Comparable<SortName
|
|||
}
|
||||
}
|
||||
|
||||
// Zero pad all numbers to nine digits for better sorting
|
||||
sortName = sortName.replace(consecutiveDigits) { it.value.padStart(9, '0') }
|
||||
// Zero pad all numbers to six digits for better sorting
|
||||
sortName = sortName.replace(consecutiveDigits) { it.value.padStart(6, '0') }
|
||||
}
|
||||
|
||||
collationKey = COLLATOR.getCollationKey(sortName)
|
||||
|
|
Loading…
Reference in a new issue