Feature request #1137

Ordering attribute table by two or more fields

Added by cdavilam - over 16 years ago. Updated over 7 years ago.

Status:Closed
Priority:Low
Assignee:-
Category:Data Provider
Pull Request or Patch supplied:No Resolution:fixed/implemented
Easy fix?:No Copied to github as #:11197

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

#1 Updated by Paolo Cavallini over 14 years ago

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

#2 Updated by cdavilam - over 14 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.

#3 Updated by Paolo Cavallini over 14 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.

#4 Updated by cdavilam - over 14 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.

#5 Updated by Giovanni Manghi almost 13 years ago

  • Target version changed from Version 1.7.0 to Version 1.7.4

#6 Updated by Giovanni Manghi over 12 years ago

  • Target version changed from Version 1.7.4 to Version 2.0.0

#7 Updated by Pirmin Kalberer about 12 years ago

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

#8 Updated by Ger CO almost 8 years ago

Is there any update on this? Would be really helpfull

#9 Updated by Harrissou Santanna almost 8 years ago

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

#10 Updated by Ger CO almost 8 years ago

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

#11 Updated by Giovanni Manghi over 7 years ago

  • Easy fix? set to No

#12 Updated by Regis Haubourg over 7 years ago

  • Resolution set to fixed/implemented
  • Status changed from Open to Closed

Also available in: Atom PDF