We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95eaa42 commit 905880eCopy full SHA for 905880e
queries.sql
@@ -138,7 +138,7 @@ SELECT DISTINCT(initial) as initial FROM entries
138
SELECT COUNT(*) OVER () AS total, e.id, e.content FROM entries e
139
LEFT JOIN relations ON (relations.to_id = e.id)
140
WHERE relations.to_id IS NULL AND e.lang=$1 AND e.initial=$2 AND e.status='enabled'
141
- ORDER BY e.weight OFFSET $3 LIMIT $4;
+ ORDER BY content[1] OFFSET $3 LIMIT $4;
142
143
-- name: insert-entry
144
WITH w AS (
0 commit comments