What determined $loop(,1) selection?


#1

Can anyone tell me what determines which file in each folder is selected by $loop(%_folderpath%,1)?

I find often is is the alphabetically first, but occasionally it is the last or one in the middle. Is it just undefined i.e. pot luck?

I 'd be interested to know what determined the choice, and how I can control it, to get e.g. just the alphabetically first.

Thanks.


#2

It's the first file of the set of files the current loop operates on.

The order of the files is -- for the outermost loop -- the order of the files in the file view or -- in all other cases -- the order of files determined by the enclosing loop.


#3

for the outermost loop -- the order of the files in the file view

Ah, that's good, and good to know. Thanks, Florian.