Folders are now sorted by name

This commit is contained in:
Thaum Rystra
2024-05-15 12:45:45 +02:00
parent f47c311883
commit 4fc897deec
5 changed files with 49 additions and 40 deletions

View File

@@ -31,7 +31,7 @@ const reorderCreatureFolder = new ValidatedMethod({
owner: userId
}, {
fields: { order: 1, },
sort: { left: -1 }
sort: { order: 1 }
}).forEach((folder, index) => {
if (folder.order !== index) {
CreatureFolders.update(_id, { $set: { order: index } })