I have to sort orders on my date field send_date
, but NULL send_dates always on the end.
I have tried this, but this isn't working:
Order::orderBy(\DB::raw('ISNULL(send_date), send_date'), 'asc')
->orderBy('send_date', 'desc')
How can I sort on send_date, with NULL dates always on the end?