Does anyone know what the function is to perform a natural order sort using the usort function in PHP on an object.
Lets say the object ($obj->Rate)has a range of v
Use strnatcmp for your comparison function. e.g. it's as simple as
function mysort($a, $b) { return strnatcmp($a->rate, $b->rate); }