PHP USORT Метод класса

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

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