function RulesPlugin::compare

File

includes/rules.core.inc, line 618

Class

RulesPlugin
Base class for rules plugins.

Code

protected static function compare(RulesPlugin $a, RulesPlugin $b) {
    if ($a->weight == $b->weight) {
        return 0;
    }
    return $a->weight < $b->weight ? -1 : 1;
}