The Line # is used to keep things grouped together. The user will want to order Item A1 and B1 and have them added to the purchase order, then, to the same purchase order, add items A2, A3, B1, B3 and have them next to each other (since they are grouped together, so the PO looks like
1) Flooring Model A
2) Grout to Match Flooring Model A
3) Panel Model A2
4) Studs for Panel
5) Nails for Panel.
etc. etc.
There are many cases where the order of the list has to be determined by the user, but I don't want to restrict him from picking more than one.
My question is, since you have the query, you have to loop through it somehow, to add the items that are selected on the pick list, why can't you loop in the same order as they are displayed? According to Jaymer (who is much smarter and better looking than me!), it seems like you do this in REVERSE order. If that is true, how hard is it to change the order?
Bruce