Sort order of variables list in SQL editor

Hello,

How are the variables in an SQL-based question sorted in the UI on the right hand side (e.g. to connect to field filters etc)?

At first, it is by the order in which I create the variables in the query, however after about 6 or so, the order just becomes randomised. So any new variables don't go to the bottom of the list. For queries with lots of filters, this becomes quite inefficient.

{
"browser-info": {
"language": "en-GB",
"platform": "MacIntel",
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36",
"vendor": "Google Inc."
},
"metabase-info": {
"databases": [
"bigquery-cloud-sdk"
],
"run-mode": "prod",
"plan-alias": "embedding_premium",
"version": {
"date": "2025-04-15",
"tag": "v0.54.3",
"hash": "6b5b460"
},
"settings": {
"report-timezone": "UTC"
},
"hosting-env": "unknown",
"application-database": "postgres",
"application-database-details": {
"database": {
"name": "PostgreSQL",
"version": "15.12"
},
"jdbc-driver": {
"name": "PostgreSQL JDBC Driver",
"version": "42.7.5"
}
}
},
"system-info": {
"file.encoding": "UTF-8",
"java.runtime.name": "OpenJDK Runtime Environment",
"java.runtime.version": "21.0.6+7-LTS",
"java.vendor": "Eclipse Adoptium",
"java.vendor.url": "https://adoptium.net/",
"java.version": "21.0.6",
"java.vm.name": "OpenJDK 64-Bit Server VM",
"java.vm.version": "21.0.6+7-LTS",
"os.name": "Linux",
"os.version": "5.15.146+",
"user.language": "en",
"user.timezone": "GMT"
}
}