In my database, here is what I have
I've tried to query everything and order by price
$service_plans = DB::table('service_plans') ->orderBy('price', 'asc') ->get();
I kept getting
Did I miss anything or did anything that I'm not suppose to here ?
Any hints ?
P.S. Keep in mind that I'm using jQuery DataTables


pricecolumn in your database? Also, you aren't by chance using DataTables for display are you?dd($service_plans)right after your query and look at the output. If it's sorted there (which I expect it is), you know Laravel is doing things correctly and it's something else which is resorting after.orderByis not working.