Show smallest and largest in a structure list

$raceKmItems = $page->listing()->toStructure()->pluck('race_km', ',', true);
$min         = min($raceKmItems);
$max         = max($raceKmItems);

Alternative:

$items = $page->listing()->toStructure()->sortBy('race_km', 'asc');
$min   = $items->first()?->race_km();
$max   = $items->last()?->race_km();