Bug 119345 - Writer: Key type "numeric" for sorting in an index is missing
Summary: Writer: Key type "numeric" for sorting in an index is missing
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: x86-64 (AMD64) All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Concordance-File
  Show dependency treegraph
 
Reported: 2018-08-18 14:37 UTC by Landshut
Modified: 2023-05-04 16:30 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
contains short text with index and screenshot with current index-parameters (60.06 KB, application/vnd.oasis.opendocument.text)
2018-08-18 14:40 UTC, Landshut
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Landshut 2018-08-18 14:37:48 UTC
Description:
I created an extensive document in Writer (current version 6.0.5.2), which contains an index. There are also references to paragraphs from legal texts, which, however, are sorted incorrectly: Instead of e.g. § 3, § 22, § 104 Writer sorted as follows: § 104, § 22, § 3.

Steps to Reproduce:
See attached file with an example and screenshot of available parameters.

Actual Results:
Numbers are sorted in a wrong way, e.g. 100, 20, 3.

Expected Results:
Numbers should be sorted in this way: 3, 20, 100 ...


Reproducible: Always


User Profile Reset: No



Additional Info:
The reason and the theoretical solution for this I have found in the LibreOffice help: When formatting the index, you can specify the sorting of numbers by key type. Unfortunately I do not have the required entry "numeric", I can only select the alphanumeric sorting.
Comment 1 Landshut 2018-08-18 14:40:58 UTC
Created attachment 144266 [details]
contains short text with index and screenshot with current index-parameters
Comment 2 Harald Berger 2018-08-18 15:19:16 UTC
Confirming with
Version: 6.0.6.2 (x64)
Build-ID: 0c292870b25a325b5ed35f6b45599d2ea4458e77
CPU-Threads: 8; BS: Windows 10.0; UI-Render: Standard; 
Gebietsschema: de-DE (de_DE); Calc: group

WIN-10-1803-64-Bit
Comment 3 Julien Nabet 2018-08-19 10:05:44 UTC
I don't use and so don't know much about index but if the entry contains § + space, how could Writer consider entries as numerical and so sort them as numerical?
Comment 4 Landshut 2018-08-19 13:53:02 UTC
(In reply to Julien Nabet from comment #3)
> I don't use and so don't know much about index but if the entry contains § +
> space, how could Writer consider entries as numerical and so sort them as
> numerical?

It doesn't matter if there is an § or not. The problem occures by using numbers without the § as well. The problem is the missing entry "numeric" at the index-parameters...
Comment 5 Julien Nabet 2018-08-19 18:33:25 UTC
Heiko/Xisco: I noticed this part in code:
https://opengrok.libreoffice.org/xref/core/svtools/source/control/indexentryres.cxx#28
and I don't see numeric sort.
So it seems more an enhancement than a bug, what do you think?
Comment 6 Heiko Tietze 2018-08-20 11:24:56 UTC
We had a similar discussion lately about natural sort in Calc. Maybe this code can be taken for Writer. And yes, this enhancement would be a nice to have.
Comment 7 Landshut 2018-08-20 15:37:52 UTC
(In reply to Heiko Tietze from comment #6)
> We had a similar discussion lately about natural sort in Calc. Maybe this
> code can be taken for Writer. And yes, this enhancement would be a nice to
> have.

Dear all,

thanx for examining my request! This kind of sorting is explicitly described in the Writer-help, so I assume that the function was already implemented earlier or at least already planned. In German the text is as follows:

"Schlüsseltyp -
Wählen Sie "numerisch", wenn Sie Zahlen nach ihrem Betrag sortieren möchten, beispielsweise 1, 2, 12. Wählen Sie "alphanumerisch", wenn Sie Zahlen nach Zeichencode sortieren möchten, beispielsweise 1, 12, 2."
Comment 8 raal 2019-01-14 12:53:45 UTC
(In reply to Heiko Tietze from comment #6)
> We had a similar discussion lately about natural sort in Calc. Maybe this
> code can be taken for Writer. And yes, this enhancement would be a nice to
> have.

Delete keywords bibisectRequest, regression. Enhancement.
Comment 9 Landshut 2020-04-17 17:21:39 UTC
Hi,

is there any activity in this topic?
All the best to everyone, especially health!
Comment 10 Heiko Tietze 2020-04-20 12:44:17 UTC
(In reply to Landshut from comment #9)
> is there any activity in this topic?

Just assign yourself if you want to work on this topic.
Comment 11 Landshut 2022-08-07 08:56:51 UTC
Sorry for that misunderstanding! I'm not a developer, I'm just a user and not able to fix it by myself. I've posted this issue on this website because someone in a forum commended me to do so. Can anybody help to fix this bug?
Comment 12 Julien Nabet 2022-08-07 09:03:57 UTC
No need to put this one in NEEDINFO since there's no question for the moment to begin to fix this.
Now you just have to wait for someone work on it and it may take some time since most devs are benevolent and there are a lot of bugs to fix + this enhancement isn't a priority... The only alternative, since you don't know coding, is to contact a company and pay for it.