Display existing months jobs first (DESC) and then the rest sorted by date DESC
Hi there,
I have a question that, I first need to show the existing month jobs first in DESC order in the data table and, then the rest of the jobs according to DESC order.
Can anyone help me with this?
@SilenceBringer Imagine your job table is having the records of the past month, if we do this way past month records appear first.
but I need to show current month jobs first in the table and then the other jobs in DESC order.
Any Idea?
@avishkaMelatest will sorts by dates in desc order. Current month is the latest one (it no future dates exists). So, current month will be the first one, and then - previous months
@SilenceBringer Oh I'm really sorry, I really appreciate your help, the column with date is not created_at, it's a custom column named start_date, which stores the job starting day.
I need to sort the data table according to that column. and that contains past and future days. Again I really appreciate your contribution in this case.