sort the data in the datatable c# code example Example: sort datatable c# Datatable.DefaultView.Sort = "Preferance ASC";