Skip to content

Kirby 5.0.4

$query->order()

Attaches an order clause

$query->order(string|null $order = null): Kirby\Database\Query

Parameters

Name Type Default
$order stringornull null

Return type

Kirby\Database\Query

This method modifies the existing $query object it is applied to and returns it again.

Parent class

Kirby\Database\Query