I have a file in the following format:
Name Score Average Score
Matt 100
Fred 56 66
John 60
Simon 56 55
I want to sort it as follows:
Name Score Average
Simon 56 55
Fred 56 66
John 60
Matt 100
First the score is sorted and then the average scores are sorted
within the people with average scores.
Ive been trying to figure this out for a while, using awk and sort,
but with no luck.
Any help would be much appreciated!
Mant thanks,
Ed.