Opened 18 years ago

Closed 15 years ago

#52 closed enhancement (fixed)

Change order of PostGIS Layer in Layer select box

Reported by: horst.duester@… Owned by: gsherman
Priority: major: does not work as expected Milestone: Version 1.0.3
Component: GUI Version: 1.0.0
Keywords: Cc: jef
Must Fix for Release: No Platform: All
Platform Version: Awaiting user input: no

Description

In qgis/src/gui/qgsdbsourceselect.cpp change line 520 from

sql += " order by f_table_name";

to

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.

Change History (5)

comment:1 by gsherman, 18 years ago

Resolution: fixed
Status: newclosed

Fixed in r5184

comment:2 by anonymous, 17 years ago

Awaiting user input: unset
Must Fix for Release: No

comment:3 by mwtoews, 15 years ago

Milestone: Version 0.8Version 1.0.2
Platform: RedHatAll
Resolution: fixed
Status: closedreopened
Version: 0.81.0.0

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";

comment:4 by pcav, 15 years ago

Cc: jef added

Can the patch be applied?

in reply to:  3 comment:5 by jef, 15 years ago

Resolution: fixed
Status: reopenedclosed

applied in r10672

Note: See TracTickets for help on using tickets.