src/Tadcka/Mapper/Extension/Source/Tree/MapperTreeItem.php
private function sortChildren()
    {
        uasort(
            $this->children,
            function (MapperTreeItemInterface $first, MapperTreeItemInterface $second) {
                if ($first->getPriority() >= $second->getPriority()) {
                    return 1;
                }

                if ($first->getPriority() < $second->getPriority()) {
                    return -1;
                }
            }
        );
    }
private function sortChildren()
    {
        uasort(
            $this->children,
            function (MapperTreeItemInterface $first, MapperTreeItemInterface $second) {
                if ($first->getPriority() >= $second->getPriority()) {
                    return 1;
                }

                if ($first->getPriority() < $second->getPriority()) {
                    return -1;
                }
            }
        );
    }
private function sortChildren ( ) { uasort ( $ this -> children , function ( MapperTreeItemInterface $ first , MapperTreeItemInterface $ second ) { if ( $ first -> getPriority ( ) >= $ second -> getPriority ( ) ) { return 1 ; } if ( $ first -> getPriority ( ) < $ second -> getPriority ( ) ) { return - 1 ; } } ) ; }
Sort item children.
Sort item children .