Skip to content
This repository has been archived by the owner on May 21, 2021. It is now read-only.

Commit

Permalink
Do not sort delivery methods for time being
Browse files Browse the repository at this point in the history
  • Loading branch information
sanmai committed Oct 25, 2020
1 parent 8f6088a commit 59be6c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/110_CreateAndSubmitOrder.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,11 @@
*/
$deliveryMethods = \iterator_to_array($response, false);

/*
\usort($deliveryMethods, function (\YDeliverySDK\Responses\Types\DeliveryOption $a, \YDeliverySDK\Responses\Types\DeliveryOption $b) {
return $a->cost->deliveryForSender <=> $b->cost->deliveryForSender;
});
*/

/** @var \YDeliverySDK\Responses\Types\DeliveryOption $deliveryMethod */
foreach ($deliveryMethods as $deliveryMethod) {
Expand Down

0 comments on commit 59be6c8

Please sign in to comment.