# $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.

- Source: `src/Cms/PageActions.php#L329` <https://github.com/getkirby/kirby/blob/6.0.0-beta.1/src/Cms/PageActions.php#L329>
- Inherited from Kirby, not part of the Merx API. See <https://getkirby.com/docs/reference>.

```php
$productPage->changeSort(null|int $position = null): Kirby\Cms\Page
```

## Parameters

| Name | Type | Default |
| --- | --- | --- |
| `$position` | `null\|int` | `null` |

## Return type

`Kirby\Cms\Page`

## Parent class

`Wagnerwagner\Merx\ProductPage` inherited from `Kirby\Cms\Page`
