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.
Created attachment 144266 [details] contains short text with index and screenshot with current index-parameters
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
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?
(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...
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?
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.
(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."
(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.
Hi, is there any activity in this topic? All the best to everyone, especially health!
(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.
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?
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.