Railo 4.2 Reference
Choose a function:

Object Method Array.swap

Swaps array values of an array at specified positions. This
function is more efficient than multiple cfset tags
Array.swap(number position1,number position2):boolean


The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
position1 number  Yes Position of first element to swap
position2 number  Yes Position of second element to swap