/** * Sort the results on the specified field name. * Default is “none”, which causes the results to be sorted in descending order by score. * * @param string $field * * @return \Riak\Client\Command\Search\Search */ public function withSortField($field) { $this->query->setSortField($field); return $this; }