Feature request #6828

Correct sorting of layers in TOC when loading multiple layers

Added by Ryan Dalton about 2 years ago.

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


Target version:-
Platform: Resolution:
Platform version: Patch supplied:No
Status info: Tag:


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

Also available in: Atom PDF