I have a DataTable with a Name column. I want to generate a collection of the unique names ordered alphabetically. The following query ignores the
DataTable
Name
var sortedTable = (from results in resultTable.AsEnumerable() select (string)results[attributeList]).Distinct().OrderBy(name => name);