fdupes icon indicating copy to clipboard operation
fdupes copied to clipboard

Allow reverse flag for sorting by name

Open rheber opened this issue 9 years ago • 3 comments

#73

rheber avatar Dec 11 '16 10:12 rheber

Could you please merged this pull request? I spent an hour debugging until I noticed that the flag --reverse works only for the time based sorting.

Well, IMHO multiplying by -1 is not the most obvious way how to do that but it sure works.

jfilak avatar Jul 17 '17 22:07 jfilak

@jbruchon Thank you very much. Since I already had the sources on my machine, I did my version of the patch: return !ISFLAG(flags, F_REVERSE) ? strcmp(f1->d_name, f2->d_name) : strcmp(f2->d_name, f1->d_name);

built it, removed the correct files and dropped the local build :)

jfilak avatar Jul 18 '17 10:07 jfilak

Duplicate of #102?

FabioPedretti avatar Mar 16 '19 18:03 FabioPedretti