Reorder STSG grammar rules.