Dear Enque,
Your problem is to sort a group of records, on the value of a particular column.
I do not know what your program exactly does, but I think it collects multiple sets of related data, and analyzes them. In order to solve this type of problems systematically, you need to understand...