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