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"], ],