make alt clause ordering test deterministic