Pages::setOrderList($list)

Version 2025.4

Set list of id values to order the result

You can

Return value

$this

Arguments

$list
String Comma delimited list
Array List of id values

Full documentation

Get all projects. ORder by order_date BUT get orders in given list first:

$Projects = $this->get('pages','project')
    ->setOrder('order_date')
    ->setOrderList('1001','1002','1003);