I have multiple columns in datatable like this:
COL1 COL2 COL3
aaa 5 bla
bbb 8 blablabla
ccc 11 blabla
ddd 9 bl
eee 6 blabl
I'm trying to sort this datatable by COL1 asc and by COL2 desc BOTH!
I have tried the following solution but it doesn't exactly sort the second column:
DataTable dt = GetMyData();
dt.DefaultView.Sort = "COL1";
dt.DefaultView.Sort = "COL2 DESC";
dt = dt.DefaultView.ToTable();