diff --git a/app/Models/Checkout.php b/app/Models/Checkout.php
index a0ea86f..d97d05c 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');
+ return $this->belongsTo('App\Models\Bidders', 'bidder_num', 'idbidders')->orderBy('bidder_assigned_number', 'asc');
}
public function paymentMethod()
diff --git a/app/helpers.php b/app/helpers.php
index 585c96b..9f799ad 100644
--- a/app/helpers.php
+++ b/app/helpers.php
@@ -25,11 +25,8 @@ class CheckoutBidderSelectList
{
public static function CheckoutBidderShowNumbers()
{
- $checkout_bidder_num_results = Checkout::with(['bidders' => function ($q) {
- $q->orderBy('bidder_assigned_number', 'asc');
- }])
+ $checkout_bidder_num_results = Checkout::with('bidders')
->get();
- dd($checkout_bidder_num_results);
$checkout_bidder_num = '';
foreach($checkout_bidder_num_results as $checkout_bidder_num_result){
$checkout_bidder_num .= '';