src/Jsonq.php
public function groupBy($column)
    {
        $this->prepare();

        $data = [];
        foreach ($this->_map as $map) {
            $value = $this->getFromNested($map, $column);
            if ($value) {
                $data[$value][] = $map;
            }
        }

        $this->_map = $data;
        return $this;
    }
public function groupBy($column)
    {
        $this->prepare();

        $data = [];
        foreach ($this->_map as $map) {
            $value = $this->getFromNested($map, $column);
            if ($value) {
                $data[$value][] = $map;
            }
        }

        $this->_map = $data;
        return $this;
    }
public function groupBy ( $ column ) { $ this -> prepare ( ) ; $ data = [ ] ; foreach ( $ this -> _map as $ map ) { $ value = $ this -> getFromNested ( $ map , $ column ) ; if ( $ value ) { $ data [ $ value ] [ ] = $ map ; } } $ this -> _map = $ data ; return $ this ; }
getting group data from specific column

@param string $column
@return $this
@throws ConditionNotAllowedException
getting group data from specific column