Bug 476282 - HTML-Export, order of <collection>s in <collections> seames undefined
Summary: HTML-Export, order of <collection>s in <collections> seames undefined
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-HTMLGallery (other bugs)
Version First Reported In: 8.1.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-29 09:31 UTC by Klaus
Modified: 2023-10-29 10:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 8.2.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Klaus 2023-10-29 09:31:11 UTC
SUMMARY
***
HTML-Export, order of <collection>s in <collections> seames undefined
***

STEPS TO REPRODUCE
1. Goto HTML Export
2. Select some folders in same parent folder
3. start export 
4. check Gallery.xml

OBSERVED RESULT
Order of <Collection>s in <Collections> is not clear. It changes from day to day :-(
In yesterdays call to DigiKam it appears in alphabetical order of the folder names. (And I was happy ...)
Today the order is:
<collections> 
  <collection> <name>01_Kapitel Charly</name> ... </collection>
  <collection> <name>00_Einleitung</name> ... </collection>
  <collection> <name>03_Kapitel Delta</name> ... </collection>
  <collection> <name>02_Kapitel Anton</name> ... </collection>
</collections> 
I have no idea why. (And I am confused ...)

EXPECTED RESULT
Order of <collection>s in <collections> is clearly defined. By default it should be alphabetically sorted by folder names.
... at least I'm interested in any work around.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 20.04.6 LTS 20.04 (x86_64)

ADDITIONAL INFORMATION
... correct component selection above is unclear to me - but I have to select any ...
Comment 1 Maik Qualmann 2023-10-29 10:34:20 UTC
Git commit a37d168c12a83888c18707e6d15707e57b2808ad by Maik Qualmann.
Committed on 29/10/2023 at 11:33.
Pushed by mqualmann into branch 'master'.

add HTML Gallery album sorting
FIXED-IN: 8.2.0

M  +1    -1    NEWS
M  +17   -5    core/dplugins/generic/tools/htmlgallery/generator/gallerygenerator.cpp

https://invent.kde.org/graphics/digikam/-/commit/a37d168c12a83888c18707e6d15707e57b2808ad