I have a table with active and last_active_time fields. They contain the activity index and the time of the last event, respectively. I need to sort by active column in descending order, if the row values ​​are the same, then sort by last_active_time descending. How to implement this correctly?

    1 answer 1

    ORDER BY active DESC, last_active_time DESC ? What is the difficulty?