mtaylor314
Member
I am writing a for/next loop to go through an ArrayList. Each object in the array contain a FromDate, ToDate, and Location. I need to sort out each object first by ToDate, in ascending order, then by FromDate, in ascending order. The kicker is that if both dates match in an object, that when I print the Location to the file that should be under the same From-To.
FromDate to ToDate
Location 1
Location 2
FromDate to ToDate
Location 3
FromDate to ToDate
Location 4
Location 5
Location 6
I would appreciate any help in writhing the pseudo code. I know it will invole if statements, but my brain is fried. Please help.
FromDate to ToDate
Location 1
Location 2
FromDate to ToDate
Location 3
FromDate to ToDate
Location 4
Location 5
Location 6
I would appreciate any help in writhing the pseudo code. I know it will invole if statements, but my brain is fried. Please help.