title: Sorting gridview using ado.net entity framework
body: <p>i used below code to fill my gridview but i need sorting gridview . How can i do that in Ado.net enttiy framework? (Sorting gridview if  filling gridview with ado.net entity  )</p>
  
  <pre><code>  void LoadStaffPersonel()
          {
              int selectedDepartman = Convert.ToInt32(Request.QueryString["SelectedDepartmanID"]);
              string name = "";
              using (staffContext = new StaffManagementEntities())
              {
   name = staffContext.Departman.Where(d =&#62; d.ID == selectedDepartman).First().Name;
  
  
                  ObjectResult&#60;StaffsPersonel&#62; personalData = staffContext.GetPersonelData(name);
                  gvPersonel.DataSource = personalData.ToList();
                  gvPersonel.DataBind();
              }
          }</code></pre>