diff --git a/app/Models/Checkout.php b/app/Models/Checkout.php index d97d05c..a0ea86f 100644 --- a/app/Models/Checkout.php +++ b/app/Models/Checkout.php @@ -18,7 +18,7 @@ class Checkout extends Model public function bidders() { - return $this->belongsTo('App\Models\Bidders', 'bidder_num', 'idbidders')->orderBy('bidder_assigned_number', 'asc'); + return $this->belongsTo('App\Models\Bidders', 'bidder_num', 'idbidders'); } public function paymentMethod() diff --git a/app/helpers.php b/app/helpers.php index 9f799ad..b61fe40 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -26,6 +26,7 @@ class CheckoutBidderSelectList public static function CheckoutBidderShowNumbers() { $checkout_bidder_num_results = Checkout::with('bidders') + ->orderBy('bidders.bidder_assigned_number') ->get(); $checkout_bidder_num = ''; foreach($checkout_bidder_num_results as $checkout_bidder_num_result){