Sort variable/panels by metric

Hi,

I currently have a variable that contains names of pages.

Robots are executing tasks to check if those pages are working fine every x minutes.
Results are stored into a MySQL db, and for each page we get the last execution result (Success / Failed).
I created a dashboard with a status panel, which will display a green square if the page is working or a red one if failed. (voluntary blurred)

Everything is working well but I’m looking for a way to reorder the panels in order to get the red ones in first position.
Currently, the order is just fixed with the sort field in variable settings.

Thank you in advance