I have 2 lists that have dates and data. Each list is in the proper order as noted by the sequence number. Now I need to merge the 2 lists together and keep everything in the correct order.
For example:
List A
20101001 A data 1 seq1
20101001 A data 2 seq2
20101005 A data 3 seq3
List B
20101001 B data 1 seq1
20101003 B data 2 seq2
etc...
I need the new list to look like this:
20101001 A data 1 seq1
20101001 A data 2 seq2
20101001 B data 1 seq3
20101003 B data 2 seq4
20101005 A data 3 seq5
2 things that I thought of is merging the lists together and applying the sequence number prior to inserting them into a db or I can insert them into the db with the current sequence and pull them back out again to merge them together, but that seems like an extra step and kludgy.
Any ideas on the best way to go about this?
Thanks!!!!!