Plain functions can be used in any RAQL query clause. You may use any Business Analytics built-in plain function (see Built-In
RAQL
Functions for a list) or user-defined plain functions that you or other Business Analytics 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: