laravel order by asc not null code example Example: laravel order by asc not null select id, slug, position from products order by -position DESC