diff --git a/src/topics/index.js b/src/topics/index.js index 61c1c62908..7473f5754a 100644 --- a/src/topics/index.js +++ b/src/topics/index.js @@ -37,7 +37,7 @@ Topics.exists = async function (tid) { }; Topics.getTopicsFromSet = async function (set, uid, start, stop) { - const tids = await db.getSortedSetRange(set, start, stop); + const tids = await db.getSortedSetRevRange(set, start, stop); const topics = await Topics.getTopics(tids, uid); Topics.calculateTopicIndices(topics, start); return { topics: topics, nextStart: stop + 1 };