Sorting is useful for quickly arranging variables alphabetically. You can sort by Name, Group or Refs. Sorting by Group first sorts by Group and then by Name. The variables are sorted in ascending order if they are not already sorted that way; otherwise they are sorted in descending order. Sorting can only be done when there are no pending changes to the variables.
Sorting is a one time operation. A sort state is not maintained meaning that new or renamed variables will not automatically be sorted.
Continuously clicking a sortable column will switch the sort order from ascending to descending and back again.
The order of the variables is saved with the project.