src/Traits/Module/HasSortable.php
public function removeSortable($element)
    {
        if (array_has($this->sortable, $element)) {
            return $this->sortable = array_except($this->sortable, $element);
        }

        if (in_array($element, $this->sortable(), true)) {
            return $this->sortable = array_except(
                $this->sortable,
                array_search($element, $this->sortable, true)
            );
        }

        return $this->sortable;
    }
public function removeSortable($element)
    {
        if (array_has($this->sortable, $element)) {
            return $this->sortable = array_except($this->sortable, $element);
        }

        if (in_array($element, $this->sortable(), true)) {
            return $this->sortable = array_except(
                $this->sortable,
                array_search($element, $this->sortable, true)
            );
        }

        return $this->sortable;
    }
public function removeSortable ( $ element ) { if ( array_has ( $ this -> sortable , $ element ) ) { return $ this -> sortable = array_except ( $ this -> sortable , $ element ) ; } if ( in_array ( $ element , $ this -> sortable ( ) , true ) ) { return $ this -> sortable = array_except ( $ this -> sortable , array_search ( $ element , $ this -> sortable , true ) ) ; } return $ this -> sortable ; }
Remove an element from Sortable collection.

@param $element

@return null|array
Remove an element from Sortable collection .