Brooking, John wrote: > Barring that, if I were in Perl, I would just call the Perl sort > function and pass my own comparison function pointer. Does PHP have > such a mechanism? I haven't found it, if it does. Yes it does, usort(). See: http://www.php.net/usort HTH -- Suni