Index: openacs-4/packages/acs-subsite/tcl/package-procs-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/tcl/package-procs-postgresql.xql,v diff -u -r1.20.2.3 -r1.20.2.4 --- openacs-4/packages/acs-subsite/tcl/package-procs-postgresql.xql 13 Jun 2016 07:44:32 -0000 1.20.2.3 +++ openacs-4/packages/acs-subsite/tcl/package-procs-postgresql.xql 13 Jun 2016 11:11:15 -0000 1.20.2.4 @@ -104,7 +104,7 @@ and t2.object_type = :start_with) t where a.object_type = :object_type and t.object_type = a.ancestor_type $storage_clause - order by type_level, attribute_id + order by type_level, sort_order, attribute_id