The event occurs before data loading and allows to customize sorting of dataset
<cfset conn.event.attach("beforeSort",handlerFunc)>
Parameters handlerFunc:
Availability:
Sample:
<cffunction name="custom_sort">
<!--- SORT BY LENGTH(some_field) --->
<cfargument name="sorted_by">
<cfset ARGUMENTS.sorted_by.add("LENGTH(some_field)")>
</cffunction>
<cfset conn.event.attach("beforeSort",custom_sort)>
Back to top