mirror of
https://github.com/outline/outline.git
synced 2026-11-23 06:11:04 +03:00
Update server/api/collections.js
Co-authored-by: Tom Moor <tom.moor@gmail.com>
This commit is contained in:
1 parent
0b95fb4593
commit
e118fc6a91
1 file changed
+1
-1
@@ -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"],
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user