Fix bug where IR legacy quals were jumbled; temporary fix for sample order