<?php array_search(mixed $needle, array $haystack, bool $strict = false): int|string|false
<?php $this->items = $this ->values() ->keyBy(function ($column, $key) use ($preferred) { $preferredKey = array_search($column->field(), $preferred ?? []); return $preferredKey !== false ? '_'.$preferredKey : $key + 1; })