You need sort the records in database or in datasource(in c#).
Example:
Using Query
SELECT * FROM TblEmp ORDER EmpID
SELECT * FROM TblEmp ORDER JoiningDate
BTW use
ASC
/
DESC
based on your requirement(loading records either in Ascending or Descending).
Using Datasource
DataView dataView = new DataView(dTable);
dataView.Sort = " EmpID DESC";--It will display the sorted records by EmpID
GridView1.DataSource = dataView;
GridView1.DataBind();