src/Mouf/Html/Widgets/Menu/MenuItem.php
public function getChildren() {
		if ($this->sorted == false && $this->children) {
			// First, let's make 2 arrays: the array of children with a priority, and the array without.
			$childrenWithPriorities = array();
			$childrenWithoutPriorities = array();
			foreach ($this->children as $child) {
				/* @var $child MenuItemInterface */
				$priority = $child->getPriority();
				if ($priority === null || $priority === "") {
					$childrenWithoutPriorities[] = $child;
				} else {
					$childrenWithPriorities[] = $child;
				}
			}
			
			usort($childrenWithPriorities, array($this, "compareMenuItems"));
			$this->children = array_merge($childrenWithPriorities, $childrenWithoutPriorities);
			$this->sorted = true;
		}
		return $this->children;
	}
public function getChildren() {
		if ($this->sorted == false && $this->children) {
			// First, let's make 2 arrays: the array of children with a priority, and the array without.
			$childrenWithPriorities = array();
			$childrenWithoutPriorities = array();
			foreach ($this->children as $child) {
				/* @var $child MenuItemInterface */
				$priority = $child->getPriority();
				if ($priority === null || $priority === "") {
					$childrenWithoutPriorities[] = $child;
				} else {
					$childrenWithPriorities[] = $child;
				}
			}
			
			usort($childrenWithPriorities, array($this, "compareMenuItems"));
			$this->children = array_merge($childrenWithPriorities, $childrenWithoutPriorities);
			$this->sorted = true;
		}
		return $this->children;
	}
Returns a list of children elements for the menu (if there are some).

@see MenuItemInterface::getChildren()
@return array<MenuItemInterface>