Ok. Then something must be really strange about my code because when I step through my sorting function I see that the sort direction is "DESC" and then I run the ToTable() function but when I step through the resulting table like this..
Code:
For r As Integer = 0 To dataTable.Rows.Count - 1
Dim row As DataRow = dataTable.Rows(r)
......
Next
...I see that the table still is sorted in an ascending direction.
What could be the explanation for this?