Skip to content

Kirby 4.1.2

$query->order()

Attaches an order clause

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

Parameters

Name Type Default
$order string|null 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