Skip to content

Commit

Permalink
Apply order by traits to search results
Browse files Browse the repository at this point in the history
Allows for sorting of search:results tag.
Issue reference: statamic#2383
  • Loading branch information
ryanmitchell committed Feb 2, 2021
1 parent b49e3b3 commit 8413315
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Search/Tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
class Tags extends BaseTags
{
use Concerns\OutputsItems,
Concerns\QueriesConditions;
Concerns\QueriesConditions,
Concerns\QueriesOrderBys;
use Concerns\GetsQueryResults {
results as getQueryResults;
}
Expand All @@ -33,6 +34,7 @@ public function results()
$this->querySite($builder);
$this->queryStatus($builder);
$this->queryConditions($builder);
$this->queryOrderBys($builder);

$results = $this->getQueryResults($builder);
$results = $this->addResultTypes($results);
Expand Down

0 comments on commit 8413315

Please sign in to comment.