Feature request #52
Change order of PostGIS Layer in Layer select box
|Pull Request or Patch supplied:||Resolution:||fixed|
|Easy fix?:||No||Copied to github as #:||10111|
In qgis/src/gui/qgsdbsourceselect.cpp change line 520 from
sql += " order by f_table_name";
sql += " order by f_table_schema,f_table_name";
As the result prior the schemanames will be ordered and than the tablenames.
It is much more easier to find a layer.
#2 Updated by Mike Taves about 11 years ago
- Resolution deleted (
- Status changed from Closed to Feedback
My projects use multiple geometry columns for each table, and I've noticed the geometry column having different sortings.
So naturally, please update qgis/src/app/qgsdbsourceselect.cpp:
558c558 < "order by f_table_schema,f_table_name"; --- > "order by f_table_schema,f_table_name,f_geometry_column";