Sorts a ResultSet by a particular column.
Takes four parameters. For example:
rsSort(rsName,sortCol,sortType,sortOrder)
Parameter | Description |
---|---|
rsName | The name of the ResultSet. |
sortCol | The name of the column to sort by. |
sortType | The type of sort (defaults to int):
string: sort alphabetically int: sort numerically date: sort by date |
sortOrder | The sort order (defaults to asc):
asc: ascending order desc: descending order |
Returns TRUE if the function is successful.
Returns FALSE if the function fails or the ResultSet is empty.
Sorts the SearchResults ResultSet by Content ID in descending order:
<$rsSort("SearchResults","dDocName","string","desc")$>