Operator Type:
Operator Scope of Action:
Operator Purpose:
Operator First Added:
Operator Altered:
Function [other Function type actions]
Item [operators of similar scope]
Data manipulation [other Data manipulation operators]
5.8.0
List.reverse()
This function reverses the order of the referenced list, or set. The function does not reverse the individual list values, but rather reverses the exact order of the individual values. Trailing parentheses are optional for this function.
$MyList = $MyList.reverse()
$MyList = "ant;bee;cow".reverse()
The function may be chained with the List.sort() and List.isort() functions, noting that sorting can only be used with List-type and not Set-type data:
$MyList = $MyList.sort().reverse()
$MyList = $MyList.isort().reverse()