I'm not sure if there is a solution do that.
Some complex screens and web blocks tend to end up with so many local variables. Currently the input variables are displayed first and then the local variables are added as we go. There is an option to move the variables up and down. But over the period of the time, developers do not order the variables in a logical way. It becomes difficult to surf thru the variables when you had to.
Providing an option (or by making it a default one) to keep the local variables in alphabetical order will help in navigation. And it also helps in grouping the variables.
For e.g., all boolean variables will be listed one by one
IsCorrect
IsDataAvailable
Is Error
Also, all variables specific to an widget or entity can be identified easily
employeeList
employeeNumber
employeeDropDown
It also helps in finding a variable easily.