src/Services/Finder.php
protected function applySorting()
    {
        $sortable = app('scaffold.sortable');
        $element = $sortable->element();
        $direction = $sortable->direction();

        if ($element && $direction) {
            if (is_string($element)) {
                $this->assembler()->sort($element, $direction);
            }
        }

        return $this;
    }
protected function applySorting()
    {
        $sortable = app('scaffold.sortable');
        $element = $sortable->element();
        $direction = $sortable->direction();

        if ($element && $direction) {
            if (is_string($element)) {
                $this->assembler()->sort($element, $direction);
            }
        }

        return $this;
    }
protected function applySorting ( ) { $ sortable = app ( 'scaffold.sortable' ) ; $ element = $ sortable -> element ( ) ; $ direction = $ sortable -> direction ( ) ; if ( $ element && $ direction ) { if ( is_string ( $ element ) ) { $ this -> assembler ( ) -> sort ( $ element , $ direction ) ; } } return $ this ; }
Extend query with Order By Statement.
Extend query with Order By Statement .