8 $f = $DIC->ui()->factory();
9 $renderer = $DIC->ui()->renderer();
13 'default_option' =>
'Default Ordering',
14 'latest' =>
'Most Recent Ordering',
15 'oldest' =>
'Oldest Ordering' 19 $select_option =
'default_option';
20 if (
$_GET[
'sortation']) {
21 $select_option =
$_GET[
'sortation'];
25 $s =
$f->viewControl()->sortation($options)
26 ->withTargetURL($DIC->http()->request()->getRequestTarget(),
'sortation')
27 ->withLabel($options[$select_option]);
30 return $renderer->render($s);