Sesha::_rsortByNote PHP Method

_rsortByNote() protected method

Comparison function for reverse sorting stock by note.
protected _rsortByNote ( array $a, array $b ) : integer
$a array Item one.
$b array Item two.
return integer -1 if item one is greater, 1 if item two is greater; 0 if they are equal.
    protected function _rsortByNote($a, $b)
    {
        if ($a['note'] == $b['note']) {
            return 0;
        }
        return $a['note'] > $b['note'] ? -1 : 1;
    }