Update server/api/collections.js

Co-authored-by: Tom Moor <tom.moor@gmail.com>
This commit is contained in:
Saumya PandeyandTom Moor authored and GitHub committed 2021-03-15 11:04:06 +05:30
1 parent 0b95fb4593
commit e118fc6a91
1 file changed
+1 -1
+1 -1
View File
@@ -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"],
],