1
Fork 0
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:
Michael Debertol 2021-05-08 23:06:17 +02:00
parent 2ff9cc6570
commit e0ebf907a4
7 changed files with 48 additions and 1 deletions

View file

@ -0,0 +1,4 @@
0a
0a
0b
0b

4
tests/fixtures/sort/ext_stable.txt vendored Normal file
View file

@ -0,0 +1,4 @@
0a
0a
0b
0b

View file

@ -0,0 +1,3 @@
0a
0c
0b

View file

@ -0,0 +1,2 @@
0a
0c

View file

@ -0,0 +1 @@
0b