1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

sort: dedup using compare_by (#2064)

compare_by is the function used for sorting, we should use it for dedup
as well.
This commit is contained in:
Michael Debertol 2021-04-10 19:49:10 +02:00 committed by GitHub
parent 49c9d8c901
commit 69f4410a8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 28 additions and 71 deletions

View file

@ -0,0 +1,2 @@
-10 bb
aa

View file

@ -0,0 +1,3 @@
aa
-10 bb
-10 aa

View file

@ -0,0 +1,3 @@
aaa
bbb
zzz

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

@ -0,0 +1,4 @@
zzz
aaa
bbb
bbb