From 8148f4d7017db0734a90ac9a220c116e517086cd Mon Sep 17 00:00:00 2001 From: Stefan Zermatten Date: Sun, 21 Feb 2021 17:05:09 +0200 Subject: [PATCH] Fixed: Library nodes are published in order to prevent disordered building of the tree --- app/imports/server/publications/library.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/imports/server/publications/library.js b/app/imports/server/publications/library.js index 375e8269..b7d3fc11 100644 --- a/app/imports/server/publications/library.js +++ b/app/imports/server/publications/library.js @@ -52,6 +52,8 @@ Meteor.publish('library', function(libraryId){ libraryCursor, LibraryNodes.find({ 'ancestors.id': libraryId, + }, { + sort: {order: 1}, }), ]; });