Hi,
ArrayList.Sort() should do the trick, now remember that the elements of the
arraylist MUST implement IComparable.
These are the things I would check:
1- that all elements of the list are of the same type.
2- that this type implement IComparable ( you say that they are numbers, if
you mean with this that they are "int" you are ok with this).
if the above is true then it should work fine, otherwise post the code
and/or the error you are getting
Cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Baskar RajaSekharan" <rb*@srasys.co.in> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi,
I have one doubt in c_sharp. Please let me know is there any
Collection or Dictonery having the Sort facility. I want to sort a list
of Numbers. how to do that? For Example i am going to store some value in
either Hash dictonery or ArrayList... With out writing code is there any
way to Sort?
Note: Array List is not working fine.
Regards,
R.Baskar