OrderBy

Specifies in which order the result of a select query should be returned. It is possible to add one or more OrderBy attributes to the same method with different field names.

alias OrderBy = Database.Clause.Order.Field

Examples

interface ExampleRepository : Repository!Example {

   @OrderBy("b")
   @OrderBy("a", OrderBy.desc)
   Example[] select();

}

Meta