$this->
sortOptionsByPosition($options);
return;
} if ($sortMode === Set::SORT_NUMERIC
) { $this->
sortOptionsNumericalValue($options);
return;
} $this->
sortOptionsAlphanumeric($options);
} /**
* @param array<Option> $options
*/
private function sortOptionsByPosition(array &
$options): void
{ usort($options,
function DOption
$a, Option
$b): int
{ return $a->
getPosition() <=>
$b->
getPosition();
});
}