Chris McDonough wrote: > > # Compute "sort_index", which is a sort index, or none: > if kw.has_key('sort-on'): > sort_index=kw['sort-on'] > - del kw['sort-on'] Surely you added that del in for a reason though? cheers, Chris