sorting the keys for variable generation and macro generation. this forces all
the systems who have different implementations of perl's keys() function to
respond the way expected.