MySQL: Ordering with boolean case and timestamp (and not boolean then timestamp)
I have a table with some columns : Id Active timestamp 1 TRUE 23-09-10 2 NULL 23-09-11 3 FALSE 23-09-12 4 TRUE 23-09-15 5 NULL 23-09-16 I want to order my results according to this priority order If boolean is…