Use partial_cmp and make -i case insensitive (#4498)

* Use partial_cmp and make -i case insensitive

* Insensitive sort multiple columns
This commit is contained in:
JT
2022-02-16 11:12:49 -05:00
committed by GitHub
parent c4e1559f89
commit 5b6156687e
3 changed files with 82 additions and 167 deletions

View File

@ -127,7 +127,7 @@ fn ls_sort_by_type_name_sensitive() {
"#
));
let json_output = r#"[{"name": "C","type": "Dir"},{"name": "a.txt","type": "File"},{"name": "B.txt","type": "File"}]"#;
let json_output = r#"[{"name": "C","type": "Dir"},{"name": "B.txt","type": "File"},{"name": "a.txt","type": "File"}]"#;
assert_eq!(actual.out, json_output);
}