$page->sort($num = null)
Changes the sorting number of the page.
-
$num (int)
The sorting number -
return (boolean)
Example
try {
page('invisible-page')->sort(12);
echo 'The page is now visible and has the sorting number 12';
} catch(Exception $e) {
echo $e->getMessage();
}
2.3.0 +
No parameter
If the parameter $num
is not specified, the result of $page->num() will be returned instead.