471,119 Members | 1,263 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,119 software developers and data experts.

Sort an IList object

How to I sort an IList object?

Mar 7 '06 #1
2 17060
Hello, tomb!

t> How to I sort an IList object?

IList list;
ArrayList al = new ArrayList(list);
al.Sort();

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Mar 7 '06 #2


"tomb" wrote:
How to I sort an IList object?


IList list = GetSomeList();
Arraylist.Adapter(list).Sort();
// list is now sorted
Mar 7 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Arjen | last post: by
7 posts views Thread by Majnu | last post: by
3 posts views Thread by Giovanni Bassi | last post: by
48 posts views Thread by Alex Chudnovsky | last post: by
6 posts views Thread by nicolas.rolland | last post: by
4 posts views Thread by Christian Schmidt | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.