I believe this is the same problem you had with your button not firing an event.
You have not actually supplied code for the sort event that is being fired. View the aspx page and select the gridview, then in the properties box switch over to events and add an event to the Sorting event.
Comment