protected static function sortItems(array &$items)
    {
        usort($items, function ($a, $b)
        {
            if ($a['order'] === $b['order']) {
                return 0;
            }

            return ($a['order'] < $b['order']) ? -1 : 1;
        });
    }
protected static function sortItems(array &$items)
    {
        usort($items, function ($a, $b)
        {
            if ($a['order'] === $b['order']) {
                return 0;
            }

            return ($a['order'] < $b['order']) ? -1 : 1;
        });
    }
protected static function sortItems ( array & $ items ) { usort ( $ items , function ( $ a , $ b ) { if ( $ a [ 'order' ] === $ b [ 'order' ] ) { return 0 ; } return ( $ a [ 'order' ] < $ b [ 'order' ] ) ? - 1 : 1 ; } ) ; }
Sort the given items by their order.

@param  array $items

@return void
Sort the given items by their order .