Index: openacs-4/packages/file-storage/tcl/file-storage-procs-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/file-storage/tcl/file-storage-procs-postgresql.xql,v diff -u -r1.4 -r1.5 --- openacs-4/packages/file-storage/tcl/file-storage-procs-postgresql.xql 6 Sep 2001 15:40:09 -0000 1.4 +++ openacs-4/packages/file-storage/tcl/file-storage-procs-postgresql.xql 6 Sep 2001 15:53:14 -0000 1.5 @@ -76,7 +76,7 @@ - select (case when content_item__get_content_type(i.item_id) = 'content_folder' + select (case when content_item__get_content_type(j.item_id) = 'content_folder' then '?folder_id=' else 'file?file_id=' end) || j.item_id, @@ -91,7 +91,7 @@ and i.item_id = :start_id and j.tree_sortkey <= i.tree_sortkey and i.tree_sortkey like (j.tree_sortkey || '%') - order by j.tree_sortkey desc + order by j.tree_sortkey asc