You are here

public static function RulesDataProcessor::_item_sort in Rules 7.2

File

includes/rules.processor.inc, line 139
Contains classes for data processing.

Class

RulesDataProcessor
Common base class for Rules data processors.

Code

public static function _item_sort($a, $b) {
  return $a['weight'] < $b['weight'] ? -1 : ($a['weight'] > $b['weight'] ? 1 : 0);
}