Feature request #6828

Correct sorting of layers in TOC when loading multiple layers

Added by Ryan Dalton over 3 years ago. Updated 3 months ago.

Status:Open Start Date:12/04/2012
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:GUI
Target version:-
Platform: Resolution:
Platform version: Pull Request or Patch supplied:No
Status info: Tag:

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

Updated by Bruce Steedman 5 months 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

Updated by Giovanni Manghi 5 months 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.

Updated by Philipp Ringli 3 months ago

It has my vote!

Also available in: Atom