Skip to content

Commit

Permalink
facets order
Browse files Browse the repository at this point in the history
(cherry picked from commit b881b1b)
  • Loading branch information
marcos-lg committed Oct 30, 2024
1 parent c40ed15 commit 9c7e473
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@
<if test="params.facetMinCount != null">
HAVING COUNT(DISTINCT i.key) >= #{params.facetMinCount}
</if>
ORDER BY count(DISTINCT i.key) DESC
ORDER BY count(DISTINCT i.key) DESC, facet ASC
<if test="params.facetPage != null">
LIMIT #{params.facetPage.limit} OFFSET #{params.facetPage.offset}
</if>
Expand Down Expand Up @@ -543,7 +543,7 @@
<if test="params.facetMinCount != null">
HAVING COUNT(DISTINCT c.key) >= #{params.facetMinCount}
</if>
ORDER BY count(DISTINCT c.key) DESC
ORDER BY count(DISTINCT c.key) DESC, facet ASC
<if test="params.facetPage != null">
LIMIT #{params.facetPage.limit} OFFSET #{params.facetPage.offset}
</if>
Expand Down

0 comments on commit 9c7e473

Please sign in to comment.