Skip to content

Commit

Permalink
Facet in predictable order for tests, refs #448
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Nov 16, 2021
1 parent 55024b5 commit 0156c6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datasette/facets.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ async def facet_results(self):
group by
value
order by
count(*) desc limit {limit}
count(*) desc, value limit {limit}
""".format(
col=escape_sqlite(column), sql=self.sql, limit=facet_size + 1
)
Expand Down

0 comments on commit 0156c6b

Please sign in to comment.