public function keyResultsBy($field)
    {
        $results = clone $this->results;
        $this->results = new Collection;
        foreach ($results as $r) {
            $this->addRecord($r, $field);
        }
    }
public function keyResultsBy($field)
    {
        $results = clone $this->results;
        $this->results = new Collection;
        foreach ($results as $r) {
            $this->addRecord($r, $field);
        }
    }
public function keyResultsBy ( $ field ) { $ results = clone $ this -> results ; $ this -> results = new Collection ; foreach ( $ results as $ r ) { $ this -> addRecord ( $ r , $ field ) ; } }
Set which field's value will be used to key the records by

@param $field
Set which field s value will be used to key the records by