 <p>Have you tried this?</p> <pre><code>usort($array, array($this, 'compare')) </code></pre> <p><a href="http://www.php.net/manual/en/language.pseudo-types.php#language.types.callback" rel="nofollow">See PHP's documentation on the callback type</a>.</p>