Bug 58013 - sort incorrect when using dropdown and headers are references
Summary: sort incorrect when using dropdown and headers are references
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
3.6.4.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 76715 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-12-08 12:33 UTC by zhawk83
Modified: 2016-01-22 05:45 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
demonstrate sort error with referenced header (7.91 KB, application/vnd.oasis.opendocument.spreadsheet)
2012-12-08 12:33 UTC, zhawk83
Details
calc sort problem sheet 3 with 2 autofilters on same range (8.13 KB, application/vnd.oasis.opendocument.spreadsheet)
2012-12-21 16:04 UTC, john.pratt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description zhawk83 2012-12-08 12:33:14 UTC
Created attachment 71194 [details]
demonstrate sort error with referenced header

I have a sheets where the header name is a reference to another cell.
Using the autofilter and then the dropdown menu to sort (asc or desc) will sort the header too.

I have attached a file that demontrates the error.
Sheet 1 does work as expected.
Sheet 2 has its headers referenced to sheet 1. This does not work.
Sheet 3 has its headers referenced to another cell of sheet 3. This does not work.

if you select the header and its data and use sort from the menu the results are correct.
Comment 1 john.pratt 2012-12-21 16:04:02 UTC
Created attachment 71940 [details]
calc sort problem sheet 3 with 2 autofilters on same range
Comment 2 john.pratt 2012-12-21 16:05:24 UTC
I can reproduce this bug on 4.0 beta 2 using windows XP.
I have tried adding a range for the cells on sheet 3 and that did not help, but I have ended up with one range containing 2 working autofilters which I did not expect to be possible - should this go in another bug report?
Comment 3 zhawk83 2013-02-07 16:17:25 UTC
This bug still exists on v4.0.0.3 release
Comment 4 Joel Madero 2013-07-23 19:37:58 UTC
Exists on Bodhi Linux using 4.1 RC2
Comment 5 zhawk83 2014-09-21 16:23:01 UTC
This is still applicable to version 4.3.2.1 release
Comment 6 Jean-Baptiste Faure 2014-10-12 20:04:22 UTC
*** Bug 76715 has been marked as a duplicate of this bug. ***
Comment 7 austn3 2014-12-31 08:43:03 UTC
I have a sheet with some headers that are just numbers 1,2,3,4. Those get sorted when using autofilter. But if I change them to letters A,B,C,D then everything works as expected.

Not sure if this is the same bug or not.
Comment 8 QA Administrators 2016-01-17 20:04:56 UTC
** Please read this message in its entirety before responding **

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 on a currently supported version of LibreOffice (5.0.4 or later)  https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the version of LibreOffice and your operating system, and any changes you see in the bug behavior
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a short comment that includes your version of LibreOffice and Operating System

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)

http://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: http://webchat.freenode.net/?channels=libreoffice-qa

Thank you for your help!

-- The LibreOffice QA Team This NEW Message was generated on: 2016-01-17
Comment 9 Jean-Baptiste Faure 2016-01-22 05:45:09 UTC
Not reproducible anymore with LO 5.0.5.0.0+, LO 5.1.1..0.0+ and master, but still reproducible in LO 4.4.7.
Many work has been done By Eike Rathke on sorting with references in Calc, probably some of his commits fixed this issue too.

Closing as WorksForMe, because we do not know which commit fixed this exactly.
Please, feel free to reopen if you disagree.

Best regards. JBF