Fix subtitle sorting

This commit is contained in:
bytedream 2022-03-26 19:08:43 +01:00
parent 23bb9fdbd6
commit bb0e51deee

View file

@ -149,5 +149,5 @@ func (sbl SubtitlesByLocale) Swap(i, j int) {
sbl[i], sbl[j] = sbl[j], sbl[i]
}
func (sbl SubtitlesByLocale) Less(i, j int) bool {
return sbl[i].Locale < sbl[j].Locale
return LocaleLanguage(sbl[i].Locale) < LocaleLanguage(sbl[j].Locale)
}