1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 03:57:44 +00:00

sort: add "dictionary-order" flag.

The flag makes 'sort' command ignore non-dictionary symbols
(non-alphanumeric and non-spaces). The only difference with GNU sort is
that it takes ALL alphanumeric symbols, not only ASCII ones.
This commit is contained in:
elgris 2020-05-07 23:06:09 +02:00 committed by Sylvestre Ledru
parent f44e5465b8
commit 71ba8b3fd6
4 changed files with 48 additions and 9 deletions

View file

@ -0,0 +1,3 @@
bbb
./bbc
bbd

View file

@ -0,0 +1,3 @@
./bbc
bbd
bbb

View file

@ -65,6 +65,11 @@ fn test_ignore_case() {
test_helper("ignore_case", "-f");
}
#[test]
fn test_dictionary_order() {
test_helper("dictionary_order", "-d");
}
#[test]
fn test_multiple_files() {
new_ucmd!()