Bug 136597

Summary: ODF Export: Bookmark order broken when bookmarks start on same position
Product: LibreOffice Reporter: Samuel Mehrbrodt (allotropia) <samuel.mehrbrodt>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: dgp-mail, samuel.mehrbrodt, vmiklos
Priority: medium    
Version: 7.1.0.0.alpha0+   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 108288    
Attachments: Bugdoc

Description Samuel Mehrbrodt (allotropia) 2020-09-09 09:56:09 UTC
Created attachment 165309 [details]
Bugdoc

Open attached bugdoc.
Save as new file.

Compare content.xml.

Expected:
Bookmarks are in this order:
<text:bookmark-start text:name="WM(CMD 'setGroups' GROUPS 'Tag_Zeitraum')"/>
<text:bookmark-start text:name="WM(CMD 'insertFormValue' ID 'Datum') "/>

Actual:
Bookmarks get reordered:
<text:bookmark-start text:name="WM(CMD 'insertFormValue' ID 'Datum') "/>
<text:bookmark-start text:name="WM(CMD 'setGroups' GROUPS 'Tag_Zeitraum')"/>

Broken since https://cgit.freedesktop.org/libreoffice/core/commit/?id=cb46aaf2d7240dfe3ac080fe086a9f70c4c91ab5
Comment 1 Samuel Mehrbrodt (allotropia) 2020-09-24 12:18:49 UTC
This is a start, although I will not continue here:
https://gerrit.libreoffice.org/c/core/+/102362
https://gerrit.libreoffice.org/c/core/+/102363
Comment 2 Dieter 2021-03-31 08:23:37 UTC
I confirm it

Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: f96004096268f5e71120678e32fc8c74055819aa
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL
Comment 3 QA Administrators 2023-04-01 03:23:24 UTC Comment hidden (obsolete)
Comment 4 Dieter 2023-04-23 15:25:23 UTC
Still present in

Version: 7.5.2.2 (X86_64) / LibreOffice Community
Build ID: 53bb9681a964705cf672590721dbc85eb4d0c3a2
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL threaded