err i have no clue what u posted...

maybe this will be easier to do
sortying the values in vars

%var 1 3 2 4
to
%var 12 3 4