Sort by length

Hi!

Why can’t I sort out items of a list by just using where/whose?


set thelist to {"123", "1234"}
get items of thelist whose length > 2

Hi,

the whose filter works only with (application) elements which contain properties, not with custom lists.
You have to go through the list with a repeat loop

Hi Stefan!

Thanks for this hint. I already wrote a script cycling through per loop. I hoped to gain speed by doing it with direct list operations.

Awado