src/Services/Widgets.php
public function filter()
    {
        $widgets = $this->applyFilters();

        return $widgets->sortBy(function (AbstractWidget $w1) {
            return $w1->getOrder();
        });
    }
public function filter()
    {
        $widgets = $this->applyFilters();

        return $widgets->sortBy(function (AbstractWidget $w1) {
            return $w1->getOrder();
        });
    }
public function filter ( ) { $ widgets = $ this -> applyFilters ( ) ; return $ widgets -> sortBy ( function ( AbstractWidget $ w1 ) { return $ w1 -> getOrder ( ) ; } ) ; }
Fetch widgets.

@return array
Fetch widgets .