Bug report #15096

Attribute table: sort by display value instead of numeric code

Added by Andreas Neumann over 5 years ago. Updated about 5 years ago.

Assignee:Matthias Kuhn
Category:Attribute table
Affected QGIS version:master Regression?:No
Operating System:all Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:23038


In the attribute table one can pick a sort column or expression.

For widgets that have a display value, it would be more useful if the sort order would be by display value instead of the raw numeric value stored in the data provider.

Affected widgets:
- Value relation widget
- Relation reference widget
- Value map widget

I think it doesn't apply to date/time widgets, as these are sorted by the raw value, regardless of the display value.

Associated revisions

Revision 56a0af5b
Added by Matthias Kuhn about 5 years ago

Sort attribute table by representation value where useful

Fix #15096
And aligns some edge-cases of sort behavior


#1 Updated by Andreas Neumann about 5 years ago

  • Category changed from Authentication system to Attribute table

#2 Updated by Anonymous about 5 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF