Feature request #1137

Ordering attribute table by two or more fields

Added by cdavilam - almost 9 years ago. Updated 3 months ago.

Status:Open Start Date:
Priority:Low Due date:
Assigned to:- % Done:

0%

Category:Data Provider
Target version:Future Release - Nice to have
Platform:All Resolution:
Platform version: Pull Request or Patch supplied:No
Status info:0 Tag:

Description

Currently attribute table can be sorted by only one column, which is not enough in many cases. It would be nice to be able to order table by two or more columns

History

Updated by Paolo Cavallini almost 7 years ago

Can't you get the desired result by sorting by the two or more columns one at a time?

Updated by cdavilam - almost 7 years ago

Replying to [comment:5 pcav]:

Can't you get the desired result by sorting by the two or more columns one at a time?
No, it's not useful. Imagine a cadastre layer in which a municipality is divided in polygons and polygons in parcels. What I would need is to be able to select at the same time polygons and parcels and order the table first by polygons and then by parcels within each polygon. If you have only a few polygons in the municipality you can order by parcels and move up and down the table looking for some parcels of a given polygon, but it you have a lot of polygons you need to have all parcels of that given polygon together to find those you want.

Updated by Paolo Cavallini almost 7 years ago

Still unclear: you can select what you want using the query builder, isn't it?
To order by polygons and parcels, first order by parcels, then by polygons.

Updated by cdavilam - almost 7 years ago

Replying to [comment:7 pcav]:

To order by polygons and parcels, first order by parcels, then by polygons.
Sorry, I don't see how to do it in the query builder.

Updated by Giovanni Manghi over 5 years ago

  • Target version changed from Version 1.7.0 to Version 1.7.4

Updated by Giovanni Manghi about 5 years ago

  • Target version changed from Version 1.7.4 to Version 2.0.0

Updated by Pirmin Kalberer over 4 years ago

  • Target version changed from Version 2.0.0 to Future Release - Nice to have

Updated by Ger CO 3 months ago

Is there any update on this? Would be really helpfull

Updated by Harrissou Santanna 3 months ago

  • Assigned to deleted (nobody -)
  • Pull Request or Patch supplied set to No

Updated by Ger CO 3 months ago

@ Harrissou Santanna: It is true. Sorting now works with multiple columns using the || operator. Thanks for pointing that out!

Also available in: Atom