Please any one help me in sorting records in a given file with a specified field.
Example:
LASTNAME FIRSTNAME ID JOINDATE SALARY
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kunduru Swaroop 9234 10/10/2000 4000.00
Barrenkabavi Vishnu 2945 01/11/2000 7000.00
Junkey Naveen 2234 12/09/2000 1000.00
Chinnala Rajesh 6134 03/01/2001 5000.00
Kalyan Pavan 1234 12/27/2000 2000.00
The above records are in file Data.dat I wanted to sort by ID. Could any one help in solving this problem.
Thanx in advance.
Swaroop.
Example:
LASTNAME FIRSTNAME ID JOINDATE SALARY
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kunduru Swaroop 9234 10/10/2000 4000.00
Barrenkabavi Vishnu 2945 01/11/2000 7000.00
Junkey Naveen 2234 12/09/2000 1000.00
Chinnala Rajesh 6134 03/01/2001 5000.00
Kalyan Pavan 1234 12/27/2000 2000.00
The above records are in file Data.dat I wanted to sort by ID. Could any one help in solving this problem.
Thanx in advance.
Swaroop.