lib/IgraalOSL/StatsTable/StatsTable.php
public function sortMultipleColumn($columns)
    {
        $compareFuncList = [];
        foreach($columns as $colName=>$asc) {
            $columnFormat = array_key_exists($colName, $this->dataFormats) ? $this->dataFormats[$colName] : Format::STRING;
            $compareFuncList[$colName] = $this->_getFunctionForFormat($columnFormat, $asc);
        }

        $this->uSortMultipleColumn($compareFuncList);
        return $this;
    }
public function sortMultipleColumn($columns)
    {
        $compareFuncList = [];
        foreach($columns as $colName=>$asc) {
            $columnFormat = array_key_exists($colName, $this->dataFormats) ? $this->dataFormats[$colName] : Format::STRING;
            $compareFuncList[$colName] = $this->_getFunctionForFormat($columnFormat, $asc);
        }

        $this->uSortMultipleColumn($compareFuncList);
        return $this;
    }
public function sortMultipleColumn ( $ columns ) { $ compareFuncList = [ ] ; foreach ( $ columns as $ colName => $ asc ) { $ columnFormat = array_key_exists ( $ colName , $ this -> dataFormats ) ? $ this -> dataFormats [ $ colName ] : Format :: STRING ; $ compareFuncList [ $ colName ] = $ this -> _getFunctionForFormat ( $ columnFormat , $ asc ) ; } $ this -> uSortMultipleColumn ( $ compareFuncList ) ; return $ this ; }
Sort stats table by multiple column
@param array $columns Associative array : KEY=> column name (string), VALUE=> Sort direction (boolean)
@return $this
Sort stats table by multiple column