Bug 137731 - Sorting does not properly apply cell formatting (with empty cells only)
Summary: Sorting does not properly apply cell formatting (with empty cells only)
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.4.6.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-25 09:43 UTC by Sasha
Modified: 2023-04-06 16:30 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
example of how to replicate the problem (19.10 KB, image/gif)
2020-10-25 09:43 UTC, Sasha
Details
actual spreadsheet with instructions (10.20 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-10-25 11:57 UTC, Sasha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sasha 2020-10-25 09:43:50 UTC
Created attachment 166690 [details]
example of how to replicate the problem

I have created an example that demonstrates the bug (see attachment).

1st case works. 2nd case fails on step 2 (notice the pattern of yellow cells: it is expected to be a ladder-like pattern, as in 1st case step 2, but instead it is all screwed up)
Comment 1 m_a_riosv 2020-10-25 11:20:24 UTC
Please attach a spreadsheet sample file, with instruction in it about how to reproduce the issue.
Comment 2 Sasha 2020-10-25 11:57:41 UTC
Created attachment 166693 [details]
actual spreadsheet with instructions
Comment 3 Sasha 2020-10-25 12:11:26 UTC
If you first sort left to right and then top to bottom, the second sort step also fails to keep proper formatting. So it is always the second step. In my example the top part (with the values filled) shows how everything is expected to work (and it does work, as you can see). The bottom part of the example (with only one value filled) does not work properly (see the result produced -- you can try it for yourself)
Comment 4 m_a_riosv 2020-10-30 11:10:42 UTC
Happens because there are no data on L13:O15, so they are not sorted, I think because they are excluded of the sort range.
Introducing ="" in L13, then works fine.
Comment 5 QA Administrators 2022-10-31 03:33:43 UTC Comment hidden (obsolete)
Comment 6 BogdanB 2023-04-06 16:30:42 UTC
Based on comment 4 is this a WFM?