Bug 72749 - EDITING: Natural sorting does not work with underscore in strings
Summary: EDITING: Natural sorting does not work with underscore in strings
Status: RESOLVED DUPLICATE of bug 95192
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
4.1.3.2 release
Hardware: Other Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-16 09:07 UTC by Dženan Zukić
Modified: 2019-08-28 11:48 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
A test case document, with explained test content and some real data (21.42 KB, application/vnd.oasis.opendocument.spreadsheet)
2013-12-16 09:07 UTC, Dženan Zukić
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dženan Zukić 2013-12-16 09:07:50 UTC
Created attachment 90826 [details]
A test case document, with explained test content and some real data

Problem description: If the strings to be sorted contain underscore character (_), "Enable natural sort" option in the sorting dialog has no effect.

Steps to reproduce:
1. Enter following into cells:
A_1
A_10
A_2
A_20
2. Select the range
3. Data menu -> Sort... -> Options -> [x]Enable natural sort -> OK

Current behavior:
Order did not change

Expected behavior:
Order changed to:
A_1
A_2
A_10
A_20

Operating System: Windows 7
Version: 4.1.3.2 release
Comment 1 GerardF 2013-12-16 10:33:53 UTC
Confirmed on Windows Vista.
Same wrong behavior with space instead of undescore.

Can anyone confirm on other OS?
I can't remenber but I think I've read somewhere that it is Windows specific (at least for space).

Add Kohei in CC as I think he is the guy who implement natural sort in OOo.
Remove the CC if it is not the case.
Comment 2 QA Administrators 2015-04-19 03:23:41 UTC Comment hidden (obsolete)
Comment 3 Dženan Zukić 2015-04-19 03:59:19 UTC
The bug is still present in version 4.4.2.2.
Comment 4 Paolo Benvenuto 2015-10-20 08:52:21 UTC
Actually I think it's part of a more general bug, https://bugs.documentfoundation.org/show_bug.cgi?id=95192
Comment 5 QA Administrators 2016-11-08 11:38:12 UTC Comment hidden (obsolete)
Comment 6 Dženan Zukić 2016-11-08 13:58:27 UTC
This bug is still present in Version: 5.2.3.3 (Win7 x64)
Comment 7 QA Administrators 2017-11-09 07:43:16 UTC Comment hidden (obsolete)
Comment 8 Dženan Zukić 2017-11-09 13:41:24 UTC
The bug is still present.

Version: 5.4.3.2 (x64)
Build ID: 92a7159f7e4af62137622921e809f8546db437e5
CPU threads: 4; OS: Windows 6.1; UI render: default; 
Locale: en-US (en_US); Calc: CL
Comment 9 QA Administrators 2018-11-10 03:52:13 UTC Comment hidden (obsolete)
Comment 10 GerardF 2019-08-28 08:49:23 UTC
Fixed in 6.1

https://bugs.documentfoundation.org/show_bug.cgi?id=95192
Comment 11 Thomas Lendo 2019-08-28 11:48:30 UTC
I make it a duplicate of the other bug as Fixed status is only allowed for bugs with a Gerrit commit. (Otherwise it must be a Worksforme.)

*** This bug has been marked as a duplicate of bug 95192 ***