Page 2 of 2
Re: Associative array call with a math expression inside doublequotes vs singlequotes
Posted: 12 Jul 2024 14:16
by admin
Yes, I think that's expected for sorting by Index.
But here's an idea: What about secondary sort by Index descending!? This can even be stored in Folder View Settings. Forget it, it just works when sorting by Type or Ext.
Re: Associative array call with a math expression inside doublequotes vs singlequotes
Posted: 12 Jul 2024 17:41
by admin
highend wrote: ↑12 Jul 2024 14:08
An inbuilt
<cc_index> would be nice (could use this as well)...
Tried it but failed: Can't be done in a performant way.
Well, maybe I did it. Try next beta...

Re: Associative array call with a math expression inside doublequotes vs singlequotes
Posted: 12 Jul 2024 18:21
by admin
@Brano:
In your foreach loop also quote the index here:
Otherwise you get problems with folders called "20240712" (high numbers).
But, of course, the script is very inefficient anyway. Check out
<cc_index> in the next beta.
Re: Associative array call with a math expression inside doublequotes vs singlequotes
Posted: 12 Jul 2024 18:35
by Brano
Wow, great news! :-) Thanks.
Re: Associative array call with a math expression inside doublequotes vs singlequotes
Posted: 12 Jul 2024 20:26
by Brano
admin wrote: ↑12 Jul 2024 14:03
Folder and files can mix if you sort by Index.
Ahh...ok, I see now how it works. It cannot be subtracted from the subfolder count. It was just my testing directory that way. But nevertheless, with the <cc_index> it works. I am using just
<cc_index> and
-<cc_index>
The numbers are not sequential but that is just a cosmetic.
Re: Associative array call with a math expression inside doublequotes vs singlequotes
Posted: 12 Jul 2024 20:40
by admin
So the speed is there now?
Re: Associative array call with a math expression inside doublequotes vs singlequotes
Posted: 13 Jul 2024 09:29
by Brano
Yes, I haven't noticed any lag with 1000 subfolders. Thanks.