We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb01c4c commit 044f9b7Copy full SHA for 044f9b7
src/uu/sort/src/sort.rs
@@ -1826,19 +1826,19 @@ fn compare_by<'a>(
1826
// Use locale-aware comparison if feature is enabled and no custom flags are set
1827
#[cfg(feature = "i18n-collator")]
1828
{
1829
- if !(settings.ignore_case
+ if settings.ignore_case
1830
|| settings.dictionary_order
1831
- || settings.ignore_non_printing)
+ || settings.ignore_non_printing
1832
1833
- locale_cmp(a_str, b_str)
1834
- } else {
1835
custom_str_cmp(
1836
a_str,
1837
b_str,
1838
settings.ignore_non_printing,
1839
settings.dictionary_order,
1840
settings.ignore_case,
1841
)
+ } else {
+ locale_cmp(a_str, b_str)
1842
}
1843
1844
#[cfg(not(feature = "i18n-collator"))]
0 commit comments