## Script (Python) "removeSort"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=query
##title=
##
from string import split, find, join

retList=[]
list= split(query[1:],'&')

for e in list:
   if find(e,'sort=') and find(e,'reverse='):
     retList.append(e)

return join(retList,'&')
