Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you sort on more than 3 criteria in LibreOffice Calc?

Tags:

libreoffice

It looks like you can only choose 3 criteria from Data -> Sort. Is there a way (potentially programmatic) to use additional criteria?

like image 324
Wesley May Avatar asked Feb 01 '12 19:02

Wesley May


People also ask

How many level of sorting one can apply in LibreOffice writer?

Just as in a spreadsheet, Writer allows data in a table to be sorted. Up to three levels of sorting can be specified (for example, sort first by age numerically, then alphabetically by name within each age).

How do I filter multiple values in LibreOffice Calc?

You can use either Data → More Filters → Standard Filter… to define multiple criteria and ranges, which for a bunch of ranges can be quite tedious, or you set up an Advanced Filter where you can easily define and modify filter criteria in a range of spreadsheet cells and then with the data range selected (or just the ...

How many types of sorting are there in LibreOffice Calc?

Calc provides three types of filter: Standard – specifies the logical conditions to filter your data. AutoFilter – Automatically filters the selected cell range and creates one-row list boxes where you can choose the items that you want to display. Advanced – uses filter criteria from specified cells.


1 Answers

No, without adjusting the code it is not possible to do that. In theory it should be quite easy to adjust this and remove this limitation. For the 3-5 release a voluteer did something similar already for conditional formatting.

The code is in http://opengrok.libreoffice.org/xref/core/sc/inc/sortparam.hxx but it is not just done with increasing MAXSORT. There needs to be a according change in the ui too and ideally switching to a std::vector or another dynamic datastructure. This is an easy task and I just created https://bugs.freedesktop.org/show_bug.cgi?id=45747 for this. So if you wanna join in Libreoffice development you can easily do this.

like image 187
moggi Avatar answered Oct 17 '22 23:10

moggi