mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
Sort: Various fixes and performance improvements (#2057)
* Various fixes and performance improvements * fix a typo Co-authored-by: Michael Debertol <michael.debertol@gmail.com> Co-authored-by: Sylvestre Ledru <sledru@mozilla.com> Co-authored-by: Michael Debertol <michael.debertol@gmail.com>
This commit is contained in:
parent
ee070028e4
commit
e5113ad00e
8 changed files with 242 additions and 44 deletions
20
tests/fixtures/sort/mixed_floats_ints_chars_numeric_unique_reverse_stable.expected
vendored
Normal file
20
tests/fixtures/sort/mixed_floats_ints_chars_numeric_unique_reverse_stable.expected
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
4798908.8909800
|
||||
4798908.45
|
||||
4798908.340000000000
|
||||
576,446.890
|
||||
576,446.88800000
|
||||
37800
|
||||
4567.
|
||||
46.89
|
||||
45
|
||||
8.013
|
||||
1.58590
|
||||
1.444
|
||||
1.040000000
|
||||
1
|
||||
|
||||
-.05
|
||||
-1
|
||||
-8.90880
|
||||
-896689
|
||||
-2028789030
|
33
tests/fixtures/sort/multiple_decimals.expected
vendored
Normal file
33
tests/fixtures/sort/multiple_decimals.expected
vendored
Normal file
|
@ -0,0 +1,33 @@
|
|||
-2028789030
|
||||
-896689
|
||||
-8.90880
|
||||
-1
|
||||
-.05
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
000
|
||||
CARAvan
|
||||
00000001
|
||||
1
|
||||
1.040000000
|
||||
1.444
|
||||
1.58590
|
||||
8.013
|
||||
45
|
||||
46.89
|
||||
4567..457
|
||||
4567.
|
||||
4567.1
|
||||
4567.34
|
||||
37800
|
||||
576,446.88800000
|
||||
576,446.890
|
||||
4798908.340000000000
|
||||
4798908.45
|
||||
4798908.8909800
|
35
tests/fixtures/sort/multiple_decimals_general.txt
vendored
Normal file
35
tests/fixtures/sort/multiple_decimals_general.txt
vendored
Normal file
|
@ -0,0 +1,35 @@
|
|||
576,446.890
|
||||
576,446.88800000
|
||||
|
||||
4567.1
|
||||
4567..457
|
||||
45670.89079.1
|
||||
45670.89079.098
|
||||
4567.34
|
||||
4567.
|
||||
45
|
||||
46.89
|
||||
-1
|
||||
1
|
||||
00000001
|
||||
4798908.340000000000
|
||||
4798908.45
|
||||
4798908.8909800
|
||||
|
||||
|
||||
37800
|
||||
|
||||
-2028789030
|
||||
-896689
|
||||
CARAvan
|
||||
|
||||
-8.90880
|
||||
-.05
|
||||
1.444
|
||||
1.58590
|
||||
1.040000000
|
||||
|
||||
8.013
|
||||
|
||||
000
|
||||
|
35
tests/fixtures/sort/multiple_decimals_numeric.txt
vendored
Normal file
35
tests/fixtures/sort/multiple_decimals_numeric.txt
vendored
Normal file
|
@ -0,0 +1,35 @@
|
|||
576,446.890
|
||||
576,446.88800000
|
||||
|
||||
4567.1
|
||||
4567..457
|
||||
45670.89079.1
|
||||
45670.89079.098
|
||||
4567.34
|
||||
4567.
|
||||
45
|
||||
46.89
|
||||
-1
|
||||
1
|
||||
00000001
|
||||
4798908.340000000000
|
||||
4798908.45
|
||||
4798908.8909800
|
||||
|
||||
|
||||
37800
|
||||
|
||||
-2028789030
|
||||
-896689
|
||||
CARAvan
|
||||
|
||||
-8.90880
|
||||
-.05
|
||||
1.444
|
||||
1.58590
|
||||
1.040000000
|
||||
|
||||
8.013
|
||||
|
||||
000
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue