order variables with some sense