I am using SortedList to arrange arraylist records dynamically in sort order by datecolumn, but by default it is sorting in ascending
SortedList
arraylist
datecolumn
Swapping y for x should do when comparing
class DescComparer : IComparer { public int Compare(T x, T y) { if(x == null) return -1; if(y == null) return 1; return Comparer.Default.Compare(y, x); } }
and then this
var list = new SortedList(new DescComparer());