Skip to content
This repository has been archived by the owner on Nov 4, 2021. It is now read-only.

add more complex sort option (geo_distance eg) #208

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/Builders/FilterBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,18 @@ public function orderBy($field, $direction = 'asc')
return $this;
}

/**
* Add complex sort array.
* @param array $sort
* @return $this
*/
public function sort($sort)
{
$this->orders[] = $sort;

return $this;
}

/**
* Explain the request.
*
Expand Down