The solution was: <dtml-in blabla sort_expr="REQUEST.get('sortkey','title')"> where 'sortkey' is the value, provided in the url as e.g.: ....?sortkey=date and the ,'title' part is the default value. Thank you all Stephan