diff --git a/app/Http/Controllers/PagesController.php b/app/Http/Controllers/PagesController.php index 3d97ed9..c24e41c 100644 --- a/app/Http/Controllers/PagesController.php +++ b/app/Http/Controllers/PagesController.php @@ -25,11 +25,10 @@ class PagesController extends Controller public function bidderlist() { - $bidderlist_results = DB::select("SELECT - * - FROM bidders - ORDER BY bidder_assigned_number ASC, bidder_fname ASC - "); + $bidderlist_results = Bidders::orderBy('bidder_assigned_number', 'asc') + ->orderBy('bidder_lname', 'asc') + ->orderBy('bidder_fname', 'asc') + ->get(); return view('bidderlist', ['bidderlist_results' => $bidderlist_results]); }