function RulesDataProcessor::_item_sort
File
-
includes/
rules.processor.inc, line 139
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);
}