Move page of collection to last position

$projects = page('projects')->children();
$item = $projects->findby('uid', 'project-c'); // first item: $projects->first()
$result = $projects = page('projects')->children()->not($item)->append($item->uri(), $item);
dump($result);

The same applies if you want to get the first. item. Instead of searching by uid, use first() to fetch the item.

Similar thread, but with structure field items: Shift first Structure item to end

1 Like