From 3c7237e60006290df86907fb6e943269f4924136 Mon Sep 17 00:00:00 2001 From: Joseph Lyons Date: Tue, 14 Mar 2023 21:45:17 -0400 Subject: [PATCH] Sort language names case agnostically --- crates/language/src/language.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/language/src/language.rs b/crates/language/src/language.rs index 30fc5db563..e1e60a1ecf 100644 --- a/crates/language/src/language.rs +++ b/crates/language/src/language.rs @@ -537,7 +537,7 @@ impl LanguageRegistry { .map(|l| l.config.name.to_string()), ) .collect::>(); - result.sort_unstable(); + result.sort_unstable_by_key(|language_name| language_name.to_lowercase()); result }