posted 17 years ago
Whoa!!! my eyes are cross-eyed after reading that code. What are you trying to do? I don't understand what you are trying to do here, but I think problem might be in this code
You are creating a new EmployeeSort in each iteration of the loops. Every time the loop finishes one iteration the empSort1 object goes out of scope \, and a new one is created whenver you do "new EmployeeSort". In each iteration EmployeeSort has only one employee's information. So, when the loop finishes the last EmployeeSort will have the last employees information. Is that your problem?