Is this already corrected? We have our queries written in xml and translates them into html pages using xslt. I don't think we can specify default values for sidx or any other request parameters in xml like the php did here.
Why would we want to use sortname and sortorder at first load and then switch to sidx and sord thereafter?