var sortCol = $(”#agelist”).getGridParam(”sortname”);
if you have make alert(sortCol) what is the result.
Maybe you should check you code sidx=+sortCol – what is sidx – from where you have this value? What you expect from this expression. IMHO it will not work
Try first to construct you string and after that make the link.