mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
sort: make merging stable
When merging files we need to prioritize files that occur earlier in the command line arguments with -m. This also makes the extsort merge step (and thus extsort itself) stable again.
This commit is contained in:
parent
2ff9cc6570
commit
e0ebf907a4
7 changed files with 48 additions and 1 deletions
4
tests/fixtures/sort/ext_stable.expected
vendored
Normal file
4
tests/fixtures/sort/ext_stable.expected
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
0a
|
||||
0a
|
||||
0b
|
||||
0b
|
4
tests/fixtures/sort/ext_stable.txt
vendored
Normal file
4
tests/fixtures/sort/ext_stable.txt
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
0a
|
||||
0a
|
||||
0b
|
||||
0b
|
3
tests/fixtures/sort/merge_stable.expected
vendored
Normal file
3
tests/fixtures/sort/merge_stable.expected
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
0a
|
||||
0c
|
||||
0b
|
2
tests/fixtures/sort/merge_stable_1.txt
vendored
Normal file
2
tests/fixtures/sort/merge_stable_1.txt
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
0a
|
||||
0c
|
1
tests/fixtures/sort/merge_stable_2.txt
vendored
Normal file
1
tests/fixtures/sort/merge_stable_2.txt
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
0b
|
Loading…
Add table
Add a link
Reference in a new issue