Plain functions can be used in any RAQL query clause. You may use any MashZone NextGen built-in plain function (see Built-In
RAQL
Functions for a list) or user-defined plain functions that you or other MashZone NextGen developers have added.
A simple example is shown here to sort by a column with dates:
Other examples of using plain functions in Order By clauses are shown in: