We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 719b97e commit 8dbf659Copy full SHA for 8dbf659
backend/api/browse.py
@@ -175,7 +175,7 @@ def build_order(order_by: str) -> str:
175
order_by = f"meta->>'{order_by}'"
176
177
if cast_order_by:
178
- order_by = f"CAST({order_by} AS {cast_order_by})"
+ order_by = f"COALESCE(CAST({order_by} AS {cast_order_by}), 0)"
179
180
return order_by
181
0 commit comments