Sorting a List?

Are there any accessible methods in TADS 3 for sorting a list?

I see plenty of documentation on outputting lists in a given order, but I want to do other stuff with the (sorted!) elements first.

If I could just use whatever sorting method the various Lister objects use, without having to output a list, that’d be awesometacular.

Do you just mean this, or am I missing something?

myLittleList = myLittleList.sort();

There are optional parameters, too: see the documentation for List (search for “sort”) for more details. On the same documentation page, there are also many other cool methods for lists.

Thank you muchly. :smiley:

I find the equivalent page for strings so useful, I don’t know why I didn’t think to look for the one for Lists.