soql order by desc code example
Example 1: order By Asc in laravbel
->orderBy('id', 'DESC');
Example 2: MySQL ORDER BY
SELECT
select_list
FROM
table_name
ORDER BY
column1 [ASC|DESC],
column2 [ASC|DESC],
...;
->orderBy('id', 'DESC');
SELECT
select_list
FROM
table_name
ORDER BY
column1 [ASC|DESC],
column2 [ASC|DESC],
...;