Bug 36940 - Natural Sorting not working in styles and formatting
Summary: Natural Sorting not working in styles and formatting
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
3.4.0 Beta3
Hardware: Other All
: medium normal
Assignee: Caolán McNamara
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-07 10:20 UTC by André Schnabel
Modified: 2011-05-23 06:04 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot: Styles and Formatting <F11> – Heading 1–10 (16.58 KB, image/png)
2011-05-07 12:15 UTC, manj_k
Details
all styles displayed (24.80 KB, image/png)
2011-05-07 12:27 UTC, André Schnabel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description André Schnabel 2011-05-07 10:20:05 UTC
The new natural sorting for menues does not seem to work for styles and formatting window. E.g. we still see there

Heading
Heading 1
Heading 10
Heading 2

Maybe the feature was not designed to work in this windows as well, but this isn ufortunate, as the Styles and formatting window is the most prominent place to see this sorting.
Comment 1 manj_k 2011-05-07 12:15:19 UTC
Created attachment 46428 [details]
Screenshot: Styles and Formatting <F11> – Heading 1–10
Comment 2 manj_k 2011-05-07 12:17:35 UTC
I cannot confirm that bug with LibO 3.4 Beta3 (and Beta 4) on WinXP.
See attached screenshot (from Beta 4).
Comment 3 André Schnabel 2011-05-07 12:26:30 UTC
so it seems to be ok if the styles window is in hierarchic mode. 

Does not work, if it's in list mode (e.g. display all styles or automatic).
Comment 4 André Schnabel 2011-05-07 12:27:17 UTC
Created attachment 46430 [details]
all styles displayed
Comment 5 manj_k 2011-05-07 12:38:35 UTC
André, you are right.
I also can see this bug with "All Styles", "Applied Styles", "Text Styles".
Comment 6 Sébastien Le Ray 2011-05-12 03:03:41 UTC
Indeed it was not designed to work in the select list, I'll take a look ASAP.
Comment 7 Caolán McNamara 2011-05-23 06:04:40 UTC
I think the best thing (because the Natural sort is so nifty) is to simply make it the default sort for svtools level lists (the same as it is for vcl ones and for the custom hierarchial view in sfx2)

http://cgit.freedesktop.org/libreoffice/libs-gui/commit/?id=b620170fcb3d5b759a4c4d1342561f30dc4b33a2