mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 18:16:17 +01:00
use order by
This commit is contained in:
@@ -290,7 +290,7 @@ PARALLEL SAFE`);
|
||||
if (!res.rows[0].d) {
|
||||
await client.query(`
|
||||
CREATE FUNCTION "nodebb_get_sorted_set_members_withscores"(TEXT) RETURNS JSON AS $$
|
||||
SELECT json_agg(json_build_object('value', z."value", 'score', z."score")) as item
|
||||
SELECT json_agg(json_build_object('value', z."value", 'score', z."score") ORDER BY z."score" ASC) as item
|
||||
FROM "legacy_object_live" o
|
||||
INNER JOIN "legacy_zset" z
|
||||
ON o."_key" = z."_key"
|
||||
|
||||
Reference in New Issue
Block a user