Sesha::_rsortByProperty PHP Метод

_rsortByProperty() защищенный Метод

Comparison function for reverse sorting stock by a property.
protected _rsortByProperty ( array $a, array $b ) : integer
$a array Item one.
$b array Item two.
Результат integer -1 if item one is greater, 1 if item two is greater; 0 if they are equal.
    protected function _rsortByProperty($a, $b)
    {
        if ($a[$GLOBALS['_sort_property']] == $b[$GLOBALS['_sort_property']]) {
            return 0;
        }
        return $a[$GLOBALS['_sort_property']] > $b[$GLOBALS['_sort_property']] ? -1 : 1;
    }