Aaah! Don't expose my dtml quackery here! Well, one or two others reported the same problem and I'd love to understand it. How can _.getattr(REQUEST,'sort_order','') ever give a KeyError ? puzzled, -Simon