Sorting gridView


I am very much new to this MS.NET

I wish to know whether its possible to avoid
<a href=“javascript:__doPostBack(‘ctl00$leftHolder$gvGroups’,‘Sort$GROUP_ID’)”>GROUP ID</a>

This is updated when I set sorting in gridView… I dont want this crappy JS stuff. Any other way to do sorting? May be using:

<a href=“~/mypage?sort=GROUP_ID”>GROUP ID</a> // Possible?

Thanks in advance.