Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Sorting in C#

2 views
Skip to first unread message

Krish

unread,
Aug 27, 2004, 12:37:19 PM8/27/04
to
I have a list of stock names and I have a return value for each of
these names.
I would like to sort the names by the return values and extract the
top 5 names by return.

Putting the name and return data in a hastable does not help, any
suggestions on how to look at this data greatly appreciated.


thanks

Rudy

unread,
Sep 1, 2004, 5:18:22 AM9/1/04
to
skri...@snet.net (Krish) wrote in message news:<87e66aa2.04082...@posting.google.com>...

You can use System.Collections.SortedList object and set the return
value like "key" and the names like "value"

0 new messages