Skip to content

Commit 905880e

Browse files
committed
Fix incorrect word sorting in glossary words.
1 parent 95eaa42 commit 905880e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

queries.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ SELECT DISTINCT(initial) as initial FROM entries
138138
SELECT COUNT(*) OVER () AS total, e.id, e.content FROM entries e
139139
LEFT JOIN relations ON (relations.to_id = e.id)
140140
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;
141+
ORDER BY content[1] OFFSET $3 LIMIT $4;
142142

143143
-- name: insert-entry
144144
WITH w AS (

0 commit comments

Comments
 (0)