I created a query where I display count of statuses grouped by hour.
SELECT date(created), hour(created) as hour, STATUS, COUNT(1)
WHERE created >= now() - INTERVAL 21 hour
GROUP by date(created), hour, status
order by date(created) asc
The resulting table is correct:
But the sorting order in the visualization is wrong: