src/Model/SortableModelTrait.php
protected function flushSortOrderMapping (SortableHelper $sortableHelper, $sortMapping, array $where = []) : bool
    {
        if ($sortableHelper->applySorting($sortMapping, $where))
        {
            $this->flush();
            return true;
        }

        return false;
    }
protected function flushSortOrderMapping (SortableHelper $sortableHelper, $sortMapping, array $where = []) : bool
    {
        if ($sortableHelper->applySorting($sortMapping, $where))
        {
            $this->flush();
            return true;
        }

        return false;
    }
protected function flushSortOrderMapping ( SortableHelper $ sortableHelper , $ sortMapping , array $ where = [ ] ) : bool { if ( $ sortableHelper -> applySorting ( $ sortMapping , $ where ) ) { $ this -> flush ( ) ; return true ; } return false ; }
Applies the sort order mapping as provided in the parameters.

The model should wrap this method and use type hints on the $where parameter entries.

@param SortableHelper $sortableHelper
@param array|mixed    $sortMapping
@param array          $where

@return bool
Applies the sort order mapping as provided in the parameters .