Daniel wrote:
does C# have any collection objects that support sort functionality so that
I dont have to write my own sorting algorithm?
Not sure why you ask in an XML group about sorting with C#. Anyway, there is
Array.Sort
a static method which has various overloads.
And there is
ArrayList.Sort
to sort an ArrayList.
You also need to check the IComparable interface that classes can
implement to allow comparison (for sorting for instance).
And there is the IComparer interface that you can implement to allow
comparsion between objects.
Check the .NET documentation on those methods and interfaces, if you
have any further questions on that then you are better off asking in a
..NET framework or C# group, unless you want to do something XML specific
but then explain what.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/