Hi
I have a linked list of struct.
with fields last name, first name, age
I want to sort this linked list based on the parameter provided by the user.
If the user provides last name, i want that list be sorted by last name. If 2 or more people have same last name then it be sorted by their first name, and if first names are also same for any then by age.
Same for first name sorting. initial sort by first name, then last name and then age
I haven't been able to figure out how to do this.Since I have a large file of this data, i would have to find an efficient solution.
Thanks in Advance
Jagu
I have a linked list of struct.
with fields last name, first name, age
I want to sort this linked list based on the parameter provided by the user.
If the user provides last name, i want that list be sorted by last name. If 2 or more people have same last name then it be sorted by their first name, and if first names are also same for any then by age.
Same for first name sorting. initial sort by first name, then last name and then age
I haven't been able to figure out how to do this.Since I have a large file of this data, i would have to find an efficient solution.
Thanks in Advance
Jagu
Comment