src/Entities/Products/ProductOptionSet.php
public function getSortedOptions(ProductAddonComparator $comparator)
    {
        $options = $this->getOptions();

        usort($options, $comparator);

        return $options;
    }
public function getSortedOptions(ProductAddonComparator $comparator)
    {
        $options = $this->getOptions();

        usort($options, $comparator);

        return $options;
    }
@param ProductAddonComparator $comparator

@return array|ProductOption[]