src/Traits/Module/HasSortable.php
public function addSortable($element, Closure $callback = null)
    {
        $this->scaffoldSortable();

        if (null === $callback) {
            $this->sortable[] = $element;
        } else {
            $this->sortable[$element] = $callback;
        }

        return $this;
    }
public function addSortable($element, Closure $callback = null)
    {
        $this->scaffoldSortable();

        if (null === $callback) {
            $this->sortable[] = $element;
        } else {
            $this->sortable[$element] = $callback;
        }

        return $this;
    }
public function addSortable ( $ element , Closure $ callback = null ) { $ this -> scaffoldSortable ( ) ; if ( null === $ callback ) { $ this -> sortable [ ] = $ element ; } else { $ this -> sortable [ $ element ] = $ callback ; } return $ this ; }
Register a Sortable element.

@param $element
@param null|Closure $callback

@return $this
Register a Sortable element .