Merge pull request #2289 from zed-industries/sort-language-names-case-agnostically

Sort language names case agnostically
This commit is contained in:
Nathan Sobo 2023-03-14 20:00:52 -06:00 committed by GitHub
commit 385dfe1661
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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