Is there a way to sort orderlines?
My problem is that all my duscounts are placed at the bottom and I whant to place them after the product that has this discount.
Example:
Product1
Discount Product1
Product2
Discount Product2
Maby it's the whay I'm adding the discount thats wrong and that I have to do it in another whay to get this right.
I'm looping trough all the orderlines adding the orderline and if there is a discount I'm adding these to a temp order object. When the loop has gone trough all orderlines I'm copying the themp order back to the order object.
Is there sommeting wrong whit this?
Should I add my discounts in another whay?