Pacian
September 12, 2010, 11:36am
1
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.
Eriorg
September 12, 2010, 2:01pm
2
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.
Pacian
September 12, 2010, 4:39pm
3
Thank you muchly.
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.