Bug 137716 - Incorrect sorting order for Persian (a.k.a Farsi) text
Summary: Incorrect sorting order for Persian (a.k.a Farsi) text
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Sorting
  Show dependency treegraph
 
Reported: 2020-10-24 07:33 UTC by MohammadReza Hosseini
Modified: 2025-08-17 03:11 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description MohammadReza Hosseini 2020-10-24 07:33:54 UTC
Description:
When sorting columns containing Persian (a.k.a Farsi) text in ascending order, the Persian letter Heh 'ه' is placed before letter Waw 'و', which is incorrect while in the correct order 'و' must be before 'ه'. The bug probably affects similar languages like Arabic because the same order of letters are there too.

Steps to Reproduce:
1. Type the letter 'ه' in a cell.
2. Type the letter 'و' in the next cell in column.
3. Sort the column in ascending order.

Actual Results:
'ه' is placed before 'و'

Expected Results:
'ه' must be after 'و'


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.0.2.2
Build ID: 00(Build:2)
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: kf5
Locale: en-US (en_US.UTF-8); UI: en-US
Ubuntu package version: 1:7.0.2~rc2-0ubuntu0.20.04.2
Calc: threaded
Comment 1 Buovjaga 2021-07-27 13:09:30 UTC
Repro

NixOS
Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: 67e47070a7580a17804adce812cc2f98bfe7b51f
CPU threads: 16; OS: Linux 5.13; UI render: default; VCL: x11
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Comment 2 Buovjaga 2021-08-14 17:42:13 UTC
Seen in Linux bibisect repos 6.3, 41max, 43all. Assuming inherited.
Comment 3 Ming Hua 2021-08-14 18:31:52 UTC
I know nothing about Persian or Arabic, but it seems from a Persian MS Office user [1] that Persian and Arabic indeed have slightly different alphabetical order, and MS Office exhibits a similar problem for Persian users.

1. https://answers.microsoft.com/en-us/msoffice/forum/all/persian-alphabet-or-arabic-alphabet/1930e610-6439-4858-94bc-833aad8c61b5
Comment 4 MohammadReza Hosseini 2021-08-15 06:27:34 UTC
(In reply to Ming Hua from comment #3)
> I know nothing about Persian or Arabic, but it seems from a Persian MS
> Office user [1] that Persian and Arabic indeed have slightly different
> alphabetical order, and MS Office exhibits a similar problem for Persian
> users.
> 
> 1.
> https://answers.microsoft.com/en-us/msoffice/forum/all/persian-alphabet-or-
> arabic-alphabet/1930e610-6439-4858-94bc-833aad8c61b5

I checked the Arabic alphabet and you are correct. In Arabic alphabet the letter 'و' comes after 'ه'. So this bug only affects Persian language.
Comment 5 QA Administrators 2023-08-16 03:06:00 UTC Comment hidden (obsolete)
Comment 6 MohammadReza Hosseini 2023-08-17 08:21:01 UTC
The bug is still present.

Version: 7.3.7.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 12; OS: Linux 6.2; UI render: default; VCL: kf5 (cairo+xcb)
Locale: en-US (en_US.UTF-8); UI: en-US
Ubuntu package version: 1:7.3.7-0ubuntu0.22.04.3
Calc: threaded
Comment 7 QA Administrators 2025-08-17 03:11:55 UTC
Dear MohammadReza Hosseini,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug