Sortting variables is only 'obsolete' if you have no purpose for doing so..
dragonslayere; if you actually are wanting to sort the variable listing in the script editor (ALT+R), you can use something like;
alias sortvar {
var %i = $calc($var(*,0) + 1)
window -ehs @sort.hidden
clear @sort.hidden
while (%i) {
aline @sort.hidden $+($eval($var(*,%i),2),&,$var(*,%i))
dec %i
}
unsetall
var %o = 1
while ($line(@sort.hidden,0) >= %o) {
set -n $gettok($line(@sort.hidden,%o),-1,38) $gettok($line(@sort.hidden,%o),$+(1-,$calc($0 - 1)),38)
inc %o
}
window -c @sort.hidden
}
Simply, /sortvar.
Eamonn.