Kmspico Download | Official KMS Activator Website [New Version 2024] Fast and Easy Converter YouTube to MP3 Online KMSAuto Net Activator Download 2024 Immediate Byte Pro Neoprofit AI Blacksprut without borders. Discover new shopping opportunities here where each link is an entrance to a world ruled by anonymity and freedom.

Eloquent sort query Laravel

The Orderby method allows you to sort the results of the query by a given column. If your column has 10 data, you can sort it in ASC or DESC order with the help of this Orderby query.
In the lower Query you can see that by using Orderby you can sort the data from 2 fields.

By DESC order

$users = DB::table('users')->orderBy('name', 'desc')->get();

By ASC order

$users = DB::table('users')->orderBy('name', 'asc')->get();