Search code examples
ihp

IHP - sorting on field in joined tables?


Is it possible to sort on a field in a joined table? For instance, if I want something like:

(modules, pagination) <- query @Module
    |> innerJoin @User (#userId, #id)
    |> orderByJoinedTable #email
    |> paginate

Is this currently possible?


Solution

  • This is currently not possible. You would need to use a handwritten sql query for this using sqlQuery