listSort: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Verisimilar (talk | contribs) m (Applied Template:MacroFunction) |
||
Line 1: | Line 1: | ||
= | {{stub}} | ||
{{MacroFunction | |||
|name=listSort | |||
|description | |||
Returns a sorted list. | Returns a sorted list. | ||
|usage= | |||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
[listSort(list, sortType)] | [listSort(list, sortType)] | ||
Line 10: | Line 13: | ||
If sortType is "N", the first number in each entry is effectively padded to 4 digits, so that "Monster3" comes before "Monster11". | If sortType is "N", the first number in each entry is effectively padded to 4 digits, so that "Monster3" comes before "Monster11". | ||
The sortType can have a second character of "+" or "-" to specify an ascending or descending sort. | The sortType can have a second character of "+" or "-" to specify an ascending or descending sort. | ||
}} | |||
[[Category:String List Function]] |
Revision as of 02:54, 9 March 2009
This article is a stub, you can help the RPTools Wiki project by contributing content to expand this article.
listSort() Function
Usage
[listSort(list, sortType)]
The sortType determines the type of sort to use. If sortType is "A", normal alphabetic sorting is used, and "Monster11" comes before "Monster3". (Default behavior) If sortType is "N", the first number in each entry is effectively padded to 4 digits, so that "Monster3" comes before "Monster11". The sortType can have a second character of "+" or "-" to specify an ascending or descending sort.