Jim Ault wrote: > The basic idea is to sort varB by the values in varA using a temporary > array. Do you need to use an array? Would this do?: sort items of varB by itemOffset(each,varA) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com