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