Skip to content

Commit

Permalink
facets order
Browse files Browse the repository at this point in the history
  • Loading branch information
marcos-lg committed Oct 30, 2024
1 parent 86d3c2d commit b881b1b
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 b881b1b

Please sign in to comment.