Sort within each duplicate group to keep the dupe lines

Discussion related to "Everything" 1.5.
Post Reply
Herkules97
Posts: 220
Joined: Tue Oct 08, 2019 6:42 am

Sort within each duplicate group to keep the dupe lines

Post by Herkules97 »

Using 1.5.0.1386a x64.

This may just be because I'm stupid, but say I have two files, I'll pick the two that got me asking this..
They have the same name and size, but their date modifieds are
2017-07-27 19:24:14
2016-10-31 14:04:36
When I sort by name only using sizedupe: namedupe:, it counts them as duplicates in groups as it should.
But any secondary sorting sorts the entire result list instead of within the duplicate groups themselves?
So I figured maybe there is a way, I remember when looking for dupe-min or similar I also saw dupe-sort so I checked and yes indeed that is a thing.
I thought maybe this sorts within the duplicates, but it says presort..In trying, it does indeed seem to not sort existing groups.
Even though ; is the same as secondary-sort, I tried it and it just gives the same result as ;.

Is there a way, something I don't know to search for within the search functions page, that sorts within existing duplicate groups?

Having each file with a different time have its own dupe line even if it's otherwise sorted by name is messy to read and it's already a bit hard on my eyes to sit and scroll these lists as-is.
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: Sort within each duplicate group to keep the dupe lines

Post by void »

It's not possible to show group lines for different dates when using sizedupe: / namedupe:
-It's not possible to show dupe lines within the dupe groups.

The dupe lines are always shown for the specified dupe properties.

To find files with the same name, but a different date modified:

dupe:name;!dm




I will add support for using group-lines: to split the dupe groups in the next alpha update.
eg:
sizedupe: namedupe: sort:name;dm group-lines:

-Currently dupe: overrides group-lines:, when really group-lines: should override the lines from dupe:



One way to do this now is with two passes:
Search for:
sizedupe: namedupe:

Select all files (Ctrl + A)
Copy filenames (Ctrl + Shift + C)
Search for:
filelist1: sort:name;dm group-lines:

Right click the filelist1: text in the search box and click Edit File List Slot....
Paste your filenames and click OK.
Herkules97
Posts: 220
Joined: Tue Oct 08, 2019 6:42 am

Re: Sort within each duplicate group to keep the dupe lines

Post by Herkules97 »

void wrote: Tue Dec 23, 2025 10:58 pm It's not possible to show group lines for different dates when using sizedupe: / namedupe:
-It's not possible to show dupe lines within the dupe groups.

The dupe lines are always shown for the specified dupe properties.

To find files with the same name, but a different date modified:

dupe:name;!dm




I will add support for using group-lines: to split the dupe groups in the next alpha update.
eg:
sizedupe: namedupe: sort:name;dm group-lines:

-Currently dupe: overrides group-lines:, when really group-lines: should override the lines from dupe:



One way to do this now is with two passes:
Search for:
sizedupe: namedupe:

Select all files (Ctrl + A)
Copy filenames (Ctrl + Shift + C)
Search for:
filelist1: sort:name;dm group-lines:

Right click the filelist1: text in the search box and click Edit File List Slot....
Paste your filenames and click OK.
I don't use group-lines:, but I take it it is the same as dupe lines from advanced settings but as a toggle for only the specific search that contains it?
The relevant part of my search is "!folder: sort:name-ascending;date-modified-descending sizedupe: namedupe: size:=>20MB size:<50MB"
The dupe lines come from that advanced settings toggle.

The !dm: suggestion achieves the same result?
Idk what your filelist1 thing is meant to do? It also achieves the same result.
I'll send images so you can see what I mean..I'll send 2 I made earlier which is when I realised I should ask about it
image.png
image.png (435.85 KiB) Viewed 1531 times
What it looks like when all the ones with the same time modified has been de-duplicated and only same files but different time modified remains while still using the same search.
image.png
image.png (432.44 KiB) Viewed 1531 times
If it 's not possible to sort within duplicate groups, I will do it manually as I already did all groups that had more than one in them when sorting both. It may take time but it only has to be done once :).
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: Sort within each duplicate group to keep the dupe lines

Post by void »

I don't use group-lines:, but I take it it is the same as dupe lines from advanced settings but as a toggle for only the specific search that contains it?
Correct, the lines are shown without any dupe: search, so you can group by the current sort.


The dupe lines come from that advanced settings toggle.
dupe-lines are enabled by default.


The !dm: suggestion achieves the same result?
No, it will only show files with the same name and size and a different date modified.


Idk what your filelist1 thing is meant to do? It also achieves the same result.
It was to show lines around each different date.
I think I have misunderstood your question.

To sort each group, use sort:

dupe:name;size sort:name;size;dm


This will show files with the same name and size, and sort by name, then size, then date modified.
The most recently modified file is shown at the top of the group.
Herkules97
Posts: 220
Joined: Tue Oct 08, 2019 6:42 am

Re: Sort within each duplicate group to keep the dupe lines

Post by Herkules97 »

void wrote: Wed Dec 24, 2025 1:16 am I think I have misunderstood your question.
Finally checked the notifications I had as I didn't get mail for 2 replies.
I believe you answered in your first reply that it's not possible if that helps..Anyway here's..Idk, a different take on the original post.
Maybe it can clear something up. I thought the images helped, at least when I was re-reading the thread now the images and the OP helped me understand what I wanted a month ago.

A duplicate group that have the same size and name, but different times.
The idea is to be able to sort within the group so that even within the same size and name you can still sort by time for example.
I don't remember now but I think it's still possible, the lines just don't keep the group so it becomes messy as you can see in image #2.
I think if I do this again, I'll set the dupe line colours to something less obnoxious or see if I can't get rid of them for this sort of de-duplication.

Looking at image #2, they still keep their background colours. So there is still something there that can make it easier to see duplicates.
The lines were used to not have to look at what names I'm selecting so I can select all but one per group then do another pass where I check that I actually selected duplicates and the right ones. I want to keep the oldest version as that will be the most accurate time-wise, hence why I was looking to keep the groups and sort within them. I presume it's not that important as the colours still keep. If the colours work like that every time, They can be what I use for seeing dupe groups. I was using the dupe lines because they're obnoxious and hard to miss. The background colours are a bit harder to see when staring at these lists but they'll be better than nothing.

Maybe I could turn the background of the interface white like 1.4x, that should help in seeing the colours.
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: Sort within each duplicate group to keep the dupe lines

Post by void »

Please try
dupe:size;name
instead of
sizedupe: namedupe:


Please also include
sort:name;size;dm
in your search.

This will group by size and name.
This will sort each group by date modified.
Post Reply