sort null and notnull data larave code example Example: laravel order by asc not null select id, slug, position from products order by -position DESC