/**
* Sorts the selected shipping method first
* If a different default shipping method is defined, it will be sorted second
* All other shipping methods keep their respective sorting
*/ publicfunctionsortShippingMethodsByPreference(SalesChannelContext $context): void { $ids = array_merge( [$context->getShippingMethod()->getId(), $context->getSalesChannel()->getShippingMethodId()], $this->getIds() );