Railo 4.2 Reference
Choose a function:

Object Method Query.sort

Sorts the query based on the column specified and the order criteria given. Modifies the original query object
Query.sort(string column_name,[string direction]):boolean

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
column_name string  Yes a list of names or a single column name
direction string  No a list of directions or a single direction defintion (asc,desc), the list must have the same length as the columnName list