If I have an object as such:
class Person { var $age; function __construct($age) { $this->age = $age; } }
and I have any array
usort() or uasort() /* to maintain index association if you were using an associative array */
usort()
uasort() /* to maintain index association if you were using an associative array */