Bug 113793 - Calc failed to sort by columns when marked range has empty rows
Summary: Calc failed to sort by columns when marked range has empty rows
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
5.2.1.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-12 20:17 UTC by Ctrl-F1
Modified: 2018-07-03 14:19 UTC (History)
3 users (show)

See Also:
Crash report or crash signature: ["SfxItemSet::Count()"]


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ctrl-F1 2017-11-12 20:17:40 UTC
Description:
I marked some range like (for example) H1:V50 which included occasional empty rows (but the head row H1:V1 always had data) and wanted to have it sorted by column. I navigated via menu and submenu and issued the sort command through a popup dialog by mouse.

Reference: 
crashreport.libreoffice.org/stats/crash_details/9532106c-f9a8-41ad-adc2-6ddfb7449c58

Steps to Reproduce:
1. enter strings (rotate:90 degrees for compactness) in first row
2. enter sparse numbers in only a few of the cells
3. mark a sub-range of that table including the top row: a range not starting in col.A but further to the right and including only a few dozen rows down, not all
4. try to sort this sub-range BY COLUMN 1

E.g. mark range E1:J25 where E1:J25 is filled with string data and few other cells of E2:J25 have numeric data, then sort by column.

Actual Results:  
crash (see description)

Expected Results:
(no crashing of the program?) (whatever error message would have been better than just a crash, at least to avoid that in future)


Reproducible: Didn't try


User Profile Reset: No



Additional Info:


User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0
Comment 1 Ctrl-F1 2017-11-13 19:29:54 UTC
Forgot to mention:
The pop-up dialog has two tab panes; the first with dropdowns for the sort criteria. The second offers half a dozen checkboxes which I had not noticed and therefore had not altered the defaults - other than switching the very bottom radiobutton ON (the one specifying the sort by columns instead of rows). 

In some more tries now I did the same but also unchecked the second checkbox (roughly: range contains headline columns) and that way, sorting by columns does not cause Calc to instantly crash. However, it also does not reliably sort the table range as desired. - I continued trying around, switched the two panes and repeated switching the second checkbox (of the second pane), but found no sure path to get the marked range to become properly sorted by columns.
Comment 2 Xisco Faulí 2017-11-13 21:55:14 UTC
Hello,
Thank you for reporting the bug. Please attach a sample document, as this makes it easier for us to verify the bug.
Comment 3 Buovjaga 2017-11-15 15:06:23 UTC
(In reply to Xisco Faulí from comment #2)
> Hello,
> Thank you for reporting the bug. Please attach a sample document, as this
> makes it easier for us to verify the bug.

Set to NEEDINFO.
Change back to UNCONFIRMED after you have provided the document.
Comment 4 QA Administrators 2018-05-30 16:40:11 UTC Comment hidden (obsolete)
Comment 5 QA Administrators 2018-07-03 14:19:38 UTC
Dear Bug Submitter,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-20180703