> >> CompareForSort() can be customised to do pretty much anything you >> want. >> >> I have an indexed-sort version that I could post if there's >> interest. (A nonindexed sort, i.e. actually permuting the elements >> of the array of records, will run into performance problems if the >> records are sufficiently huge | numerous). www.4toc.com/fb/Multiple_fields_indexed.zip Robert P.