How to sort resource table into latest()?
I'm trying to set the default of data of my resource table to be latest or orderByDesc but its not working
am I missing something?
3 Replies
parent::getTableQuery()->latest()
Try that.
Solution
Or just use
->defaultSort()
thankyou Sir/s it's working now!