I made a sql with a union all
1st sql with the itemcode, ... and the visorder and a secondvisorder.
2nd with the text fields and the same visorder and 1 in the secondvisorder
then when I run i order by visorder and secondvisorder.
It's difficult to explain by words what I have.
I hope it helps.