Método de clase PHP Usort

private static function merchantSort($a,$b) {
       return ...// the sort
}

$array = $this->someThingThatReturnAnArray();
usort($array, array('ClassName','merchantSort'));
Matteoweb