Bug 82613 - UI: Variable / User field Selection list displays entries in order of creation (rather than order of variable name)
Summary: UI: Variable / User field Selection list displays entries in order of creatio...
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
Keywords: possibleRegression
: 84945 (view as bug list)
Depends on:
Reported: 2014-08-14 11:43 UTC by Michal Torba
Modified: 2017-03-07 23:39 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:

sorted view (82.28 KB, image/png)
2014-08-14 12:56 UTC, Michal Torba
Unsorted view (32.60 KB, image/png)
2014-08-14 12:57 UTC, Michal Torba
ODT containing user fields "w2", "x1", "x10", "y10", and "Y1". (95.41 KB, application/vnd.oasis.opendocument.text)
2014-10-11 12:35 UTC, Owen Genat (retired)

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Torba 2014-08-14 11:43:21 UTC
Up to this point I have been using v There, when choosing insert -> Variables -> User Fields the list of all defined fields was sorted alphabetically. However in fields are shown in the way they are written in content.xml file.
Comment 1 Jacques Guilleron 2014-08-14 12:28:06 UTC
Hi Michal,

I have a usual view there using LO with Windows 7 Home Premium.
Can you provide a small screenshot, please?


Comment 2 Michal Torba 2014-08-14 12:56:40 UTC
Created attachment 104617 [details]
sorted view
Comment 3 Michal Torba 2014-08-14 12:57:54 UTC
Created attachment 104618 [details]
Unsorted view
Comment 4 Michal Torba 2014-08-14 14:12:03 UTC
Screenshots provided. Note, that the difference might be a feature (after all not sorting that list sounds like a valid approach), but if that's the case what is lacking is the ability to go back to older versions behaviour

Also, I checked 4.2.6 and fields were also shown not-sorted.
Comment 5 Owen Genat (retired) 2014-10-11 12:35:53 UTC
Created attachment 107718 [details]
ODT containing user fields "w2", "x1", "x10", "y10", and "Y1".

Tested under GNU/Linux using:

v3.3.4.1 OOO330m19 Build: 401
v3.4.6.2 OOO340m1 Build: 602
v3.5.7.2 Build ID: 3215f89-f603614-ab984f2-7348103-1225a5b
v3.6.7.2 Build ID: e183d5b
v4.0.6.2 Build ID: 2e2573268451a50806fcd60ae2d9fe01dd0ce24
v4.1.6.2 Build ID: 40ff705089295be5be0aae9b15123f687c05b0a
v4.2.6.3 Build ID: 3fd416d4c6db7d3204c17ce57a1d70f6e531ee21
v4.3.2.2 Build ID: edfb5295ba211bd31ad47d0bad0118690f76407d
v4.4.0.0.alpha0+ Build ID: e21f6e3838a64f6c2517479d021e943e2ffcab94 TinderBox: Linux-rpm_deb-x86_64@46-TDF, Branch:master, Time: 2014-10-10_09:04:45

v3.3-4.1 all display the Selection list entries in variable name order, while v4.2-4.4 all display the Selection list entries in the order they were created. This appears to be a regression in handling as the order variables were created in is of little use to a user.
Comment 6 Owen Genat (retired) 2014-10-11 12:42:02 UTC
As per comment 5, status set to NEW. Summary amended for clarity. Version set to, but may date from earlier in v4.2 series. Operating system set to All. Severity set to normal, as hunting for a variable in a lengthy list can be tedious, given creation order. Tag PossibleRegression added to Whiteboard.
Comment 7 Matthew Francis 2015-01-20 09:10:11 UTC
*** Bug 84945 has been marked as a duplicate of this bug. ***
Comment 8 Robinson Tryon (qubit) 2015-12-09 18:27:08 UTC Comment hidden (obsolete)
Comment 9 QA Administrators 2017-03-06 14:02:45 UTC Comment hidden (obsolete)
Comment 10 Sven 2017-03-07 23:39:41 UTC
the bug still exists in LO
Build-ID: 3b800451b1d0c48045de03b5b3c7bbbac87f20d9
CPU-Threads: 4; BS-Version: Windows 6.2; UI-Render: Standard; Layout-Engine: neu; 
Gebietsschema: de-DE (de_DE); Calc: group