Codes, tips and tricks,discussions and solutions related to C#
Tue Jun 16, 2009 5:06 pm
I have a list of swimmers with their finish times and ages shown in the table below.
How do I write a C# code to display the swimmers sorted by finish time with a column showing
their finish position (ranking) within their age group.
The age groups are
11 - 20 years
21 - 30 years
30+ years
Name Time Age
--------------------
Bob 10 21
Dave 16 16
Jon 20 26
Doug 17 29
Mike 15 31
Jerry 8 18
Dan 25 36
Ed 13 20
Stan 30 36
I can do a sorting based on finish time but how can I sort these objects based on age as well? Thanks for your suggestions.
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.