src/Charcoal/Admin/Ui/ActionContainerTrait.php
protected function compareActions(array $a, array $b)
    {
        $a = isset($a['priority']) ? $a['priority'] : 0;
        $b = isset($b['priority']) ? $b['priority'] : 0;
        $c = isset($action['isSubmittable']) && $action['isSubmittable'];

        return ($c || ($a === 0) || ($a >= $b));
    }
protected function compareActions(array $a, array $b)
    {
        $a = isset($a['priority']) ? $a['priority'] : 0;
        $b = isset($b['priority']) ? $b['priority'] : 0;
        $c = isset($action['isSubmittable']) && $action['isSubmittable'];

        return ($c || ($a === 0) || ($a >= $b));
    }
protected function compareActions ( array $ a , array $ b ) { $ a = isset ( $ a [ 'priority' ] ) ? $ a [ 'priority' ] : 0 ; $ b = isset ( $ b [ 'priority' ] ) ? $ b [ 'priority' ] : 0 ; $ c = isset ( $ action [ 'isSubmittable' ] ) && $ action [ 'isSubmittable' ] ; return ( $ c || ( $ a === 0 ) || ( $ a >= $ b ) ) ; }
To be called when merging actions.

Note: Practical for extended classes.

@param  array $a First action object to sort.
@param  array $b Second action object to sort.
@return boolean Returns TRUE if $a has priority. Otherwise, FALSE for $b.
To be called when merging actions .