From db1fd542b06be7ed4c9096fe454d3578095a7a07 Mon Sep 17 00:00:00 2001 From: Sam Schlinkert Date: Thu, 9 Feb 2023 16:20:54 -0500 Subject: [PATCH] switches to unstable sort --- src/list_manipulations.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/list_manipulations.rs b/src/list_manipulations.rs index 2753c2b..dc6d5a0 100644 --- a/src/list_manipulations.rs +++ b/src/list_manipulations.rs @@ -40,7 +40,7 @@ pub fn sort_carefully(list: Vec, locale: Locale) -> Vec { let collator_l2: Collator = Collator::try_new_unstable(&icu_testdata::unstable(), &locale.into(), options_l2).unwrap(); let mut newly_sorted_list = list; - newly_sorted_list.sort_by(|a, b| collator_l2.compare(a, b)); + newly_sorted_list.sort_unstable_by(|a, b| collator_l2.compare(a, b)); newly_sorted_list }