Skip to content

Commit 9dc0648

Browse files
committed
feat(sort): add locale-aware numeric sorting support
Implement NumericLocaleSettings to handle thousands separators and decimal points based on locale. Update tokenization logic to accommodate blank thousands separators for numeric and human-numeric modes, improving parsing of locale-specific numbers. Also refactor numeric locale detection for safety/readability and clean up related initialization/spell-checker ignore.
1 parent 10423f7 commit 9dc0648

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/uu/sort/src/sort.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1330,7 +1330,6 @@ fn detect_numeric_locale() -> NumericLocaleSettings {
13301330
};
13311331
settings
13321332
}
1333-
13341333
/// Creates an `Arg` for a sort mode flag.
13351334
fn make_sort_mode_arg(mode: &'static str, short: char, help: String) -> Arg {
13361335
Arg::new(mode)

0 commit comments

Comments
 (0)