$productPage->changeSort()
Change the position of the page in its siblings collection. Siblings will be resorted. If the page status isn't yet listed, it will be changed to it.
$productPage->changeSort(null|int $position = null): Kirby\Cms\Page
Parameters
| Name | Type | Default |
|---|---|---|
$position |
null or int |
null |
Return type
Parent class
Wagnerwagner\Merx\ProductPage inherited from Kirby\Cms\Page