Skip to content

Commit

Permalink
fix in gestione luoghi consegna
Browse files Browse the repository at this point in the history
  • Loading branch information
madbob committed Dec 17, 2024
1 parent 5f970a6 commit 16773d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/app/Delivery.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ private static function sortByUserName($bookings)

private static function sortByPlace($bookings)
{
usort($bookings, function ($a, $b) {
return $bookings->sortBy([function ($a, $b) {
$a_place = $a->shipping_place;
$b_place = $b->shipping_place;

Expand All @@ -74,7 +74,7 @@ private static function sortByPlace($bookings)
}

return $ret;
});
}]);

return $bookings;
}
Expand Down

0 comments on commit 16773d6

Please sign in to comment.