src/WPametu/DB/QueryBuilder.php
final protected function group_by($column, $order = 'ASC'){
        $order = 'DESC' === strtoupper($order) ? 'DESC' : 'ASC';
        $this->_group_by[] = sprintf('%s %s', $this->escape_column_name($column), $order);
        return $this;
    }
final protected function group_by($column, $order = 'ASC'){
        $order = 'DESC' === strtoupper($order) ? 'DESC' : 'ASC';
        $this->_group_by[] = sprintf('%s %s', $this->escape_column_name($column), $order);
        return $this;
    }
final protected function group_by ( $ column , $ order = 'ASC' ) { $ order = 'DESC' === strtoupper ( $ order ) ? 'DESC' : 'ASC' ; $ this -> _group_by [ ] = sprintf ( '%s %s' , $ this -> escape_column_name ( $ column ) , $ order ) ; return $ this ; }
Add group by

@param string $column
@param string $order
@return $this
Add group by