Created attachment 179237 [details] Sample ODS with filter When an autofiltered range is sorted using Sort Ascending / Sort Descending, the following discrepancies happen: - the filter icon moves along with the first item to its sorted place, - if the first is a header item, it is included in the sort, while it shouldn't be. See the attached sample with a simple autofilter, where the first item, "4" in A1 is a header in one sheet, and not in the other. Expectation when sorting: - when "4" is a header item, it should stay in A1, and the filter as well, - when "4" is data, it should be sorted, the filter should stay in A1, - when "4" is data and sort in the filter popup is used, the filter should stay in A1. When "4" is a header item and sort in the filter popup is used, both the item and the filter stays in A1 as expected, unlike the above three cases. For reference, Excel keeps the filter in its original place when sorting. Whether first element is kept in place depends on if one only selects the autofilter area, or the whole column, but I also haven't seen header/data distinction in Excel, first element is header by default (perhaps there's a special way to set it as data).
Works for me. Version: 7.2.6.2 (x64) / LibreOffice Community Build ID: b0ec3a565991f7569a5a7f5d24fed7f52653d754 CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win Locale: es-ES (es_ES); UI: en-US Calc: CL
(In reply to Aron Budea from comment #0) > When an autofiltered range is sorted using Sort Ascending / Sort Descending, > the following discrepancies happen: My bad, I wasn't clear, I meant the Sort Ascending / Sort Descending toolbar buttons, not the similar autofilter functions in the first two cases (and the functions in the dropdown in the other two). Let me attach a screencast, out of the 4 cases only the last works as expected. On a sidenote, if I show the 1st case by sorting using the toolbar buttons, undo it, and then do the 4th case using the filter dropdown, it behaves differently (badly).
Created attachment 179262 [details] Screencast
Created attachment 180670 [details] Video showing the problem Repro with LO 7.4 alpha Version: 7.4.0.0.alpha1+ / LibreOffice Community Build ID: 118bafcfd1ce4a26ec9df912197ebd466d1bd497 CPU threads: 16; OS: Linux 5.13; UI render: default; VCL: kf5 (cairo+xcb) Locale: pt-BR (pt_BR.UTF-8); UI: en-US Calc: CL I attached a video showing how to reproduce the bug. First create an AutoFilter and then try to sort using the toolbar. I'm setting this to NEW. As a sidenote, notice that the Down arrow stays on top of the "4" value in my video, which is another bug.
Still as shown in attachment 179262 [details] in: Version: 7.5.0.0.alpha0+ / LibreOffice Community Build ID: 24087697d5cf78aac346d4dcea0596373e15a95c CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3 Locale: en-AU (en_AU.UTF-8); UI: en-US Calc: threaded And same thing in: Version: 6.3.6.2 Build ID: 2196df99b074d8a661f4036fca8fa0cbfa33a497 CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3; Locale: en-AU (en_AU.UTF-8); UI-Language: en-US Calc: threaded
This seems to be fixed in: Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 0b8fd4aa900ac1e6102f4b2581cabbb1b81a7b13 CPU threads: 6; OS: Windows 10.0 Build 19045; UI render: default; VCL: win Locale: de-DE (de_DE); UI: en-US Calc: CL threaded
Unfortunately I can see no improvement, are you sure you tested the three problem cases from the description? Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: c60a9db1f2a8e2a088c6b89bcdff4901b28f2864 CPU threads: 16; OS: Linux 6.2; UI render: default; VCL: gtk3 Locale: en-US (en_US.UTF-8); UI: en-US Calc: threaded
Thank you for your testing. I missed the second tab where there is no heading.
Dear Aron Budea, 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