You are here

protected static function RulesPlugin::compare in Rules 7.2

File

includes/rules.core.inc, line 617
Rules base classes and interfaces needed for any rule evaluation.

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;
}