HOWTO: Check whether a particular parameter exists in the query string
Request.QueryString("foo").Count == 0
HOWTO: Get self/current URL
Request.ServerVariables("URL")
HOWTO: Convert string to lower/upper case (in VBScript)
LCase() and UCase()
HOWTO: Sort (in VBScript)
You can't! You have to roll your own sort function.