src/Aindong/Pluggables/Pluggables.php
public function sortByOrder($pluggables)
    {
        $orderedPluggables = [];

        foreach ($pluggables as $pluggable) {
            if (!isset($pluggable['order'])) {
                $pluggable['order'] = 9001;  // It's over 9000!
            }
            $orderedPluggables[] = $pluggable;
        }

        if (count($orderedPluggables) > 0) {
            $orderedPluggables = $this->arrayOrderBy($orderedPluggables, 'order', SORT_ASC, 'slug', SORT_ASC);
        }

        return $orderedPluggables;
    }
public function sortByOrder($pluggables)
    {
        $orderedPluggables = [];

        foreach ($pluggables as $pluggable) {
            if (!isset($pluggable['order'])) {
                $pluggable['order'] = 9001;  // It's over 9000!
            }
            $orderedPluggables[] = $pluggable;
        }

        if (count($orderedPluggables) > 0) {
            $orderedPluggables = $this->arrayOrderBy($orderedPluggables, 'order', SORT_ASC, 'slug', SORT_ASC);
        }

        return $orderedPluggables;
    }
public function sortByOrder ( $ pluggables ) { $ orderedPluggables = [ ] ; foreach ( $ pluggables as $ pluggable ) { if ( ! isset ( $ pluggable [ 'order' ] ) ) { $ pluggable [ 'order' ] = 9001 ; // It's over 9000! } $ orderedPluggables [ ] = $ pluggable ; } if ( count ( $ orderedPluggables ) > 0 ) { $ orderedPluggables = $ this -> arrayOrderBy ( $ orderedPluggables , 'order' , SORT_ASC , 'slug' , SORT_ASC ) ; } return $ orderedPluggables ; }
Sort pluggables by order.

@param array $pluggables

@return array
Sort pluggables by order .