Forum

The way a filename number is counted

Hi

I have a patch where I have a folder which has 50 subfolders. In each subfolder is a set of 800 or so images I need to use.

At the moment I am selecting the parent folder then navigating to each subfolder, selecting all the images and then repeating this 50 times.

I tried to create a subpatch where I can select the parent folder and it will do the rest but I’m finding it is ordering the numbered files differently (ie the way I need it is

1,2,3,4,5,6,7,8,9,10 and so on but it is doing

1,10,11,12,13,14,15,16,17,18,19,2,20 and so on

is there a way to force this to a more logical way of counting (taking the number as a whole instead of each digit)

Attached is a screenshot which shows the two methods. and an example patch .

Thanks

Filename Counting.v4p (29.8 kB)

convert to values, as your desired behaviour is numerical sorting.

numericalsorting.v4p (5.9 kB)

Great thanks readme