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-09 11:43:38 +02:00
parent 2ff9cc6570
commit e0ebf907a4
7 changed files with 48 additions and 1 deletions
+4
View File
@@ -0,0 +1,4 @@
0a
0a
0b
0b
+4
View File
@@ -0,0 +1,4 @@
0a
0a
0b
0b
+3
View File
@@ -0,0 +1,3 @@
0a
0c
0b
+2
View File
@@ -0,0 +1,2 @@
0a
0c
+1
View File
@@ -0,0 +1 @@
0b