sort before determining levels of acrossvar.  use acrossvar name instead of label if no label is present