#1 2015-07-14 05:55

hugson
Member
Registered: 2015-07-14
Posts: 2

Sorting on multiple columns

Is there any way to sort files on more than one column at the same time?

I have around 1000 files to process, stored in multiple folders. In order to achieve this, I need to be able to sort by path and filename.

Offline

#2 2015-07-14 08:41

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,479

Re: Sorting on multiple columns

There is no multi-column sorting available.

However, sorting by path and filename is exactly same as sorting just by Path column, which uses the full path to the file. It is not shown by default so you need to enable it first.

Offline

#3 2015-07-14 10:40

hugson
Member
Registered: 2015-07-14
Posts: 2

Re: Sorting on multiple columns

Thank you for your fast and excellent response. Your solution works fine.

I've done a bit of experimenting, by supplying to Renamer (which, BTW, is an excellent product)  20 filenames consisting of 2 sets of 10 files called 1.jpg thru 10.jpg. It seems to me that sorting by one column then by another achieves what I wanted anyway. Suppose I sort my 20 filenames first by size, then by name. The result seems to be that each pair of filenames is sorted (correctly) by size within name. Sorting first by size in descending sequence reverses the order within filename. Do you agree that this is how it works?

I use a similar trick on an Android spreadsheet where I need to sort on 4 columns.

Offline

#4 2015-07-14 11:20

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,479

Re: Sorting on multiple columns

It does seem to work that way, but it is an unintended consequence of a specific sorting algorithm.

Basically, it is not guaranteed that this sorting behavior is stable and that it would behave the same in the future. For example, if the used sorting algorithm will change in the future, this behavior could disappear.

Offline

Board footer

Powered by FluxBB