>You can come close but can't get the same exact result I think. Because you're using asort() which works on multidimensional arrays unpredictably (your VFP code even have a chance to return different results from version to version).
Thanks, I found a way that I do not need that approach anymore.