src/Columns/Element.php
public function sortable(\Closure $callback = null)
    {
        return tap($this, function ($element) use ($callback) {
            app('scaffold.module')->addSortable(
                $element->id(),
                $callback
            );
        });
    }
public function sortable(\Closure $callback = null)
    {
        return tap($this, function ($element) use ($callback) {
            app('scaffold.module')->addSortable(
                $element->id(),
                $callback
            );
        });
    }
public function sortable ( \ Closure $ callback = null ) { return tap ( $ this , function ( $ element ) use ( $ callback ) { app ( 'scaffold.module' ) -> addSortable ( $ element -> id ( ) , $ callback ) ; } ) ; }
Make column sortable.

@param null|\Closure $callback

@return $this
Make column sortable .