PagesEditor::editor method
Rebuild the “sort” values for all children of the given $parent page, fixing duplicates and gaps
If used on a $parent not currently sorted by by “sort” then it will update the “sort” index to be consistent with whatever the pages are sorted by.
Usage
$int = $pages->editor->sortRebuild(Page $parent);
Arguments
$pages->editor methods and properties
API reference based on ProcessWire core version 3.0.252