mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
Fix subtitle sorting
This commit is contained in:
parent
23bb9fdbd6
commit
bb0e51deee
1 changed files with 1 additions and 1 deletions
|
|
@ -149,5 +149,5 @@ func (sbl SubtitlesByLocale) Swap(i, j int) {
|
||||||
sbl[i], sbl[j] = sbl[j], sbl[i]
|
sbl[i], sbl[j] = sbl[j], sbl[i]
|
||||||
}
|
}
|
||||||
func (sbl SubtitlesByLocale) Less(i, j int) bool {
|
func (sbl SubtitlesByLocale) Less(i, j int) bool {
|
||||||
return sbl[i].Locale < sbl[j].Locale
|
return LocaleLanguage(sbl[i].Locale) < LocaleLanguage(sbl[j].Locale)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue