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