diff --git a/app/helpers.php b/app/helpers.php index b61fe40..e77b95b 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -26,8 +26,8 @@ class CheckoutBidderSelectList public static function CheckoutBidderShowNumbers() { $checkout_bidder_num_results = Checkout::with('bidders') - ->orderBy('bidders.bidder_assigned_number') ->get(); + $checkout_bidder_num_results = $checkout_bidder_num_results->orderBy('bidder_assigned_number'); $checkout_bidder_num = ''; foreach($checkout_bidder_num_results as $checkout_bidder_num_result){ $checkout_bidder_num .= '';