$collection->indexOf() Correct position detection for objects. kirby/src/Cms/Collection.php#L188 $collection->indexOf(string|object $object): int Parameters Name Type Default $object * string|object – Return type int Parent class Kirby\Cms\Collection