How Do I Sort A C Sql Server Database Programmatically And Display

How Do I Sort A C Sql Server Database Programmatically And Display