earlSt1 / vtt-compendium-folders

Collapsable folders in the compendium directory and folder structures inside compendiums for FoundryVTT
21 stars 18 forks source link

Support sorting folders not just documents #140

Closed sneat closed 2 years ago

sneat commented 2 years ago

Similar to https://github.com/earlSt1/vtt-compendium-folders/pull/135 this allows Folders to maintain their sorting, both within the Compendium view and also when imported into the World. This is particularly useful for systems that have a lot of structure to their journal entries, and don't want them in alphabetical order.

The change to alphaSortFolders while it doesn't quite fit based on the method name etc, I couldn't see any impact to having it sort by the sort value if it exists. Obviously adjust as needed, but changing this method is what's needed to change the order in the Compendium view render.

CelestianGC commented 2 years ago

This would be extremely useful for document folders that depends on chapter organization.

earlSt1 commented 2 years ago

I've manually merged these changes into the main 09x-update branch, but the manual sorting still needs work.

earlSt1 commented 2 years ago

Almost there, hoping to get a test version ready in a few days.

earlSt1 commented 2 years ago

Implemented in v2.4.4