Feature request #6828

Correct sorting of layers in TOC when loading multiple layers

Added by Ryan Dalton over 4 years ago. Updated 23 days ago.

Status:Open
Priority:Normal
Assignee:-
Category:GUI
Pull Request or Patch supplied:No Resolution:
Easy fix?:No

Description

When multiple layers are added into QGIS from a PostGIS DB (via the "Add PostGIS Layers" button), they are added to the Table of Contents in reverse alphabetical order. I would anticipate one of two alternatives:

1) add the data layers to the TOC alphabetically, or
2) more favorably, the layers would be added to the TOC by data type in the logical order they would be visible to the user (points on top, then lines, polygons, and finally rasters at the bottom). For layers of the same geometries, they would be sorted first by geometry, then alphabetically.

See discussion at http://gis.stackexchange.com/questions/41977/sort-layers-in-qgis-table-of-contents

History

#1 Updated by Bruce Steedman over 1 year ago

This FR has been outstanding some years now and I'd have thought it was the very definition of a low effort high impact job - one or two lines of code surely. In addition to the referenced gis.stackexchange Q&A there is another one: http://gis.stackexchange.com/questions/88738/is-there-a-simple-way-to-sort-layers-alphabetically-in-qgis. With the two having a total of 20 up votes can this FR be moved up the priority list?

Thanks

#2 Updated by Giovanni Manghi over 1 year ago

Bruce Steedman wrote:

This FR has been outstanding some years now and I'd have thought it was the very definition of a low effort high impact job - one or two lines of code surely. In addition to the referenced gis.stackexchange Q&A there is another one: http://gis.stackexchange.com/questions/88738/is-there-a-simple-way-to-sort-layers-alphabetically-in-qgis. With the two having a total of 20 up votes can this FR be moved up the priority list?

Thanks

that would be useful also for me, but don't forget that qgis development is heavily user-driven, so after this seems not a so popular request, otherwise someone would have already contributed code or funds to have it added.

#3 Updated by Philipp Ringli over 1 year ago

It has my vote!

#4 Updated by Giovanni Manghi 23 days ago

  • Easy fix? set to No

Also available in: Atom PDF