Total members 11894 |It is currently Mon Nov 25, 2024 6:39 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





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.




Author:
Newbie
User avatar Posts: 1
Have thanks: 0 time
Post new topic Reply to topic  [ 1 post ] 










Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
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