Bug 131010 - Calc, data sorting: random default sorting order
Summary: Calc, data sorting: random default sorting order
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.4.1.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-28 14:08 UTC by Alexey Rukin
Modified: 2020-05-11 14:09 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Select a1:m11 and try to sort. (10.79 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-02-28 14:10 UTC, Alexey Rukin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Rukin 2020-02-28 14:08:32 UTC
Description:
The default sorting order in Calc is often left to right (sort columns) which is very unnatural: usually columns in tables represent categories and not objects. 

Steps to Reproduce:
1. Create a spreadsheet with several columns of data. The first column and the first row must contain text data, other values can be text or numerical.
2. Select the table and click Sort.
3. Click Options.
4. Look at the default sorting order in the bottom of the options tab.

Actual Results:
Different sorting orders depending on contents.

Expected Results:
Top to bottom (sort rows) always.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 6.4.1.2 (x64)
Build ID: 4d224e95b98b138af42a64d84056446d09082932
CPU threads: 2; OS: Windows 10.0 Build 18363; UI render: GL; VCL: win; 
Locale: ru-RU (ru_RU); UI-Language: en-US
Calc: threaded
Comment 1 Alexey Rukin 2020-02-28 14:10:07 UTC
Created attachment 158258 [details]
Select a1:m11 and try to sort.
Comment 2 Eike Rathke 2020-02-28 14:41:04 UTC
(note: meant is sheet 'Source data'.A1:M11)

The default on an anonymous range, whether to sort by rows or by columns, depends on the dimension of the selection. If it is wider than tall then by columns is preselected, otherwise by rows. This usually makes sense. Once a different direction was selected that setting is remembered for the (one) range. If there are more than one such anonymous ranges used on a sheet then it would help to define a database range (menu Data -> Define Range...) and have "Contains column labels" activated under its Options, which again is the default for a database range.
Comment 3 Alexey Rukin 2020-02-28 14:50:31 UTC
(In reply to Eike Rathke from comment #2)
> (note: meant is sheet 'Source data'.A1:M11)
> 
> The default on an anonymous range, whether to sort by rows or by columns,
> depends on the dimension of the selection. If it is wider than tall then by
> columns is preselected, otherwise by rows. This usually makes sense. Once a
> different direction was selected that setting is remembered for the (one)
> range. If there are more than one such anonymous ranges used on a sheet then
> it would help to define a database range (menu Data -> Define Range...) and
> have "Contains column labels" activated under its Options, which again is
> the default for a database range.

It would be better to allow permanent fixing of this option.
Comment 4 Eike Rathke 2020-05-11 13:41:25 UTC
Fix what? As said, an anonymous sort range behaves as described and by definition is *temporary* (until another anonymous range is used). A *defined* database range permanently remembers the data in columns direction.
Comment 5 Buovjaga 2020-05-11 14:09:07 UTC
Yep, let's close