From e118fc6a91fd1196dfebf89c03dd4f310d9bc7fa Mon Sep 17 00:00:00 2001 From: Saumya Pandey Date: Mon, 15 Mar 2021 11:04:06 +0530 Subject: [PATCH] Update server/api/collections.js Co-authored-by: Tom Moor --- server/api/collections.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/api/collections.js b/server/api/collections.js index 7d8728ebc3..8d136f27aa 100644 --- a/server/api/collections.js +++ b/server/api/collections.js @@ -59,7 +59,7 @@ router.post("collections.create", auth(), async (ctx) => { where: { teamId: user.teamId, deletedAt: null }, attributes: ["id", "index", "updatedAt"], order: [ - //using LC_COLLATE:"C" because we need byte order to drive the sorting + // using LC_COLLATE:"C" because we need byte order to drive the sorting sequelize.literal('"collection"."index" collate "C"'), ["updatedAt", "DESC"], ],