-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sort: implement -k and -t support #1996
Conversation
This allows to specify keys after the -k flag and a custom field separator using -t. Support for options for specific keys is still missing, and the -b flag is not passed down correctly.
There's a test failure (of a test I added) saying |
I think I want to implement the missing functionality first, before requesting a review |
Just FYI, I've been working on sort too. See most recently #2008. Pleased to let you implement -k and -t, but be aware there is some functionality that I've added and I'd hate for us to needlessly conflict. If you need my help with anything, please let me know. |
Thanks, I'll take a look at your PR, hopefully there aren't too many conflicts... |
Is failing twice in the CI |
I haven't been able to reproduce this locally, and I have no idea why this is failing for this test specifically... |
Well, that seems to have worked. There's one remaining failing test, saying |
Yeah, don't bother about minrustv :) |
I will fix it here: |
Please let me know when it is ready :) |
This should be more or less ready. I don't know if I should wait for #2008 to be merged first so I can rebase on top of it, as there are going to be some conflicts |
merged #2008 sorry for the conflicts :( |
Thanks, I already expected that :) |
and make the test fail in case it is broken :)
This should be ready now. Performance seems to have regressed slightly, but I don't think it's a big deal. Note that if you want to measure performance you should specify an outfile ( |
Spoke too soon, some tests are failing. Will fix them :) |
could you please create and document how you did the benchmarking? thanks |
I added a benchmarking.md file. Below is a comparison of performance before and after my change: wordlist: ( wordlist ignoring the case ( numbers: ( |
For #1728.
This allows to specify keys after the -k flag and a custom field
separator using -t.
Not sure if I've missed something... For reference GNU coreutils documentation about sort , POSIX spec.