19declare(strict_types=1);
38 $r =
$DIC[
'ui.renderer'];
41 $sortation =
$f->input()->viewControl()->sortation([
42 'Field 1, ascending' =>
new Order(
'field1',
'ASC'),
43 'Field 1, descending' =>
new Order(
'field1',
'DESC'),
44 'Field 2, descending' =>
new Order(
'field2',
'DESC'),
49 $vc_container =
$f->input()->container()->viewControl()->standard([$sortation])
50 ->withRequest(
$DIC->http()->request());
53 $f->legacy()->content(
'<pre>' . print_r($vc_container->getData(),
true) .
'</pre>'),
54 $f->divider()->horizontal(),
Both the subject and the direction need to be specified when expressing an order.