Widgets/AdminMenu.php
/**
     * Sorts menu from top to bottom
     *
     * @param array $items
     * @return array Sorted menu items
     */
Sorts menu from top to bottom

@param array $items
@return array Sorted menu items
Sorts menu from top to bottom @param array $items @return array Sorted menu items
protected function sortMenuItems() {
        foreach($this->items AS $key => $item) {
            if(empty($item['position'])) {
                $this->items[$key]['position'] = 10000;
            }
        }
        uasort($this->items, function($a, $b) {
            return $a['position'] > $b['position'];
        });
    }
protected function sortMenuItems ( ) { foreach ( $ this -> items AS $ key => $ item ) { if ( empty ( $ item [ 'position' ] ) ) { $ this -> items [ $ key ] [ 'position' ] = 10000 ; } } uasort ( $ this -> items , function ( $ a , $ b ) { return $ a [ 'position' ] > $ b [ 'position' ] ; } ) ; }
Sorts menu from top to bottom
Sorts menu from top to bottom