Sorting all the details based on a single column
Anonymous User
205

I have to accept student details and sort then based on their average marks.
The details contain :
I have to accept n no. of data , where studentName, roll, marks in m1, m2, m3, m4, m5 are there, acccordingly i have to calculate the total, average mark and grade achieved by them then i have to display that in a tabular manner. Then i have to sort it based on average marks obtained by them.

Here my question is how to display all the details after sorting, i am getting only the average column sorted, but as per that suppose
stud_name roll avg
AA 101 67
BB 102 98
CC 103 89
DD 104 65
EE 105 75
suppose this is a table to be sorted,
aftter sorting i am getting stud_name and roll column as it is, and average field sorted. but i want to fetch the name and roll as per their average marks.

After sorting i am getting like below:
stud_name roll avg
AA 101 65
BB 102 67
CC 103 75
DD 104 89
EE 105 98

		Please help me to do it.
Comments (1)