Hi, Fred,
I vaguely, vaguely recall that in one of the Hacker's Guides to VFP, there might have been some code to do that. I may be wrong, it's been years since I had to do it, but if you have any of the Hacker's Guide books, check under ASORT or anything dealing with arrays.
Kevin