Paul,
> Ok, thanks. Now I've got to look at the Web Connect docs, since everything in this cursor has to be displayed (and I definitely don't want to display my "sort" field).
Maybe do a second select that omits the sortby column, but I don't think SQL guarantees any particular order of the result unless you specify one. Is there a reason you don't PADL() the Vid field in the first place? You are going to run into the same problem in reports etc.