Bug 168043 - [SORTING] Sort by Color show different results in Calc and Excel 365
Summary: [SORTING] Sort by Color show different results in Calc and Excel 365
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
25.8.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 163714
  Show dependency treegraph
 
Reported: 2025-08-21 15:07 UTC by Olivier Hallot
Modified: 2025-10-17 15:58 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Test file (47.07 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2025-08-21 15:08 UTC, Olivier Hallot
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Hallot 2025-08-21 15:07:45 UTC
Description:
The sort by color in Autofilter context menu shows different results on each application.



Steps to Reproduce:
1.Open file in link in either Calc and Excel 365
2. Sort by color "yellow"
3. Inspect results in both software

Actual Results:
Sorting order is different on each application

Expected Results:
Same results in both applications


Reproducible: Always


User Profile Reset: No

Additional Info:
related to bug#95520 and bug#163714, this last one is for documenting purposes.

The Sort by color in Excel has a dialog for more accurate color sorting.
Comment 1 Olivier Hallot 2025-08-21 15:08:13 UTC
Created attachment 202435 [details]
Test file
Comment 2 BogdanB 2025-08-21 18:14:49 UTC
for me is the same like in the image.
Version: 25.2.5.2 (X86_64) / LibreOffice Community
Build ID: 03d19516eb2e1dd5d4ccd751a0d6f35f35e08022
CPU threads: 16; OS: Linux 6.14; UI render: default; VCL: gtk3
Locale: ro-RO (en_US.UTF-8); UI: en-US
Calc: threaded

Also with
Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 6204dfeb53aefbc4de1c82a6bfc2f6903565f5c1
CPU threads: 16; OS: Linux 6.14; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 3 Regina Henschel 2025-10-17 15:58:33 UTC
Both sort the selected color to the start. But then Excel sorts according the position of the color in the color scale of the conditional cell formatting, whereas LibreOffice sorts by the color value, that is, #rrggbb interpreted as unsigned integer.

Tested in Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: d60ff8c8bd4e3ebf8f84f53448ead3c838332ea9
CPU threads: 32; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Vulkan; VCL: win
Locale: de-DE (de_DE); UI: en-US
Calc: threaded