Feature request #20075

Print Composer: Sort attribute table objects by non-displayed fields

Added by Nick Allen almost 2 years ago. Updated almost 2 years ago.

Status:Open
Priority:Normal
Assignee:-
Category:Map Composer/Printing
Pull Request or Patch supplied:No Resolution:
Easy fix?:No Copied to github as #:27897

Description

Short version: Allow Print Composer attribute tables to be sorted by fields that are not selected for display.

Long version: In the Print Composer, the Attribute Table item allows you to select table fields to display in a print map. There is a separate "sorting" section that makes it possible to order your displayed data by any field. However, the sorting section drop-down is restricted to fields that have been selected for display, so it is not possible to sort data by "hidden" fields. It would be nice if this restriction were lifted and any field could be used to sort.

Example use case: The end user scans a map of towns in a left-right order and would want to see a table that corresponds to this intuitive order. However, assigning feature numbers is not necessarily useful to that end user, so you would want to hide the sorting field.

Illustration

Displayed | Map Position | Hidden
Art | Middle | 2
Bob | Right | 3
Cat | Left | 1

In the table above, Print Composer should allow you to sort by the hidden field

History

#1 Updated by Jamie Sheehan almost 2 years ago

Would also love to see this functionality!

Also available in: Atom PDF