Skip to content
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

Implemented sorting output duplicate files by size #56

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

malkuh
Copy link

@malkuh malkuh commented Feb 23, 2016

I always wanted this feature and saw there was also an item about it in the issue list.
After finding all the duplicate files, the list only has to be sorted by the size of those. I think mergesort is the best choice for the sorting algorithm because no memory has to be dynamically allocated and worst runtime is still O(n log (n)). I added the command line option -z or --sortbysize.
It worked without problems on the examples I tested.

Btw, thanks for the awesome work on fdupes!

@FabioPedretti
Copy link

There is already an "order" option in 1.6.1, maybe your patch could be adapted to use the existing syntax?

@q2dg
Copy link

q2dg commented Jul 23, 2019

PLEASE!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants