I am using the SortedList class to sort an array of items. I want to bind
the SortedList to a DataGrid, but I want the list to go in descending order.
Is there anyway to change the sort order in SortedList when databinding so
that I can reverse the sort order?

Signature
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.
EmailID = varnk
Domain = Diebold.com
-----------------------------------
Nick Hertl - 18 Oct 2005 17:44 GMT
Use the SortedList constructor that takes an IComparer as one of its
arguments. That way you have full controll of how the list is sorted.
Nick Hertl - 18 Oct 2005 18:02 GMT
Use the SortedList constructor that takes an IComparer as in argument.
Then just pass in an IComparer that sorts your items in the order that
you want.