I am sorting a datable with the following code..
Dim sortedExtRecords1 As DataTable
sortedExtRecords1 = parsedDataset.Tables("Detail").Clone
Dim dvParsedDataset1 As New DataView(parsedDataset.Tables("Detail"))
dvParsedDataset1.Sort = AuthorizatonConstants.Authorization_ID
sortedExtRecords1 = dvParsedDataset1.ToTable("Detail")
I can further filter the results to only return non duplicates and if there is duplicates I want the last record of the duplicate only. My duplicates vary in size some ids can have 3 duplicates others 5 others 10, I am not sure if this matters