public function Rule::sortChildren in Rules 7.2
Sorts all child elements by their weight.
Parameters
bool $deep: If enabled a deep sort is performed, thus the whole element tree below this element is sorted.
Overrides RulesContainerPlugin::sortChildren
File
- includes/
rules.plugins.inc, line 236 - Contains plugin info and implementations not needed for rule evaluation.
Class
- Rule
- An actual rule.
Code
public function sortChildren($deep = FALSE) {
$this->conditions
->sortChildren($deep);
parent::sortChildren($deep);
}