Order dropdown values of grafana dashboard


Is there any way to order the values in the dropdown below differently ? for example on some natural sort where 6 months comes before 12 months ?



What is the source data?

source data is SQL. PostgreSQL

In a subquery Associate each value with a numeric sort order value and then sort on that value

Select Name from
Select name, case name = ‘6 months’, 1 sortorder
From source
) a
Order by sortorder

Kind of thing