Sales Confirmation writes in wrong order

Users have reported that lines are printing on documentation in the wrong order.

Sales line 1 is sent over to the CustConfirmTrans as line 1.

SalesLine 2 is sent over to the CustConfirmTrans as line 3.

SalesLine 3 is sent over to the CustConfirmTrans as line 2.

I have a DP extension class to retrieve additional fields that are not in the report by default. I am confused as to why the 3rd line is processing before the second line.