Sort language names case agnostically

This commit is contained in:
Joseph Lyons 2023-03-14 21:45:17 -04:00
parent 828e9c1bb8
commit 3c7237e600

View file

@ -537,7 +537,7 @@ impl LanguageRegistry {
.map(|l| l.config.name.to_string()),
)
.collect::<Vec<_>>();
result.sort_unstable();
result.sort_unstable_by_key(|language_name| language_name.to_lowercase());
result
}