summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2014-07-02 12:54:24 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2014-07-02 12:54:24 (GMT)
commit4348a68dcde42307aeb497e1c0af33c58b174900 (patch)
tree444d5bd56eee269be2d54cdfd58592e2c4ec17df
parentd05d4198ea676a7ba6700244b076682928b1ccdc (diff)
downloadpfwbged.folder-4348a68dcde42307aeb497e1c0af33c58b174900.zip
pfwbged.folder-4348a68dcde42307aeb497e1c0af33c58b174900.tar.gz
pfwbged.folder-4348a68dcde42307aeb497e1c0af33c58b174900.tar.bz2
sort child folders by title (#5088)HEADmaster
-rw-r--r--src/pfwbged/folder/folder.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pfwbged/folder/folder.py b/src/pfwbged/folder/folder.py
index cdcc975..0cbad53 100644
--- a/src/pfwbged/folder/folder.py
+++ b/src/pfwbged/folder/folder.py
@@ -140,7 +140,7 @@ class Folder(Container):
uuids.append(IUUID(document))
portal_catalog = api.portal.get_tool('portal_catalog')
- return portal_catalog.searchResults({'UID': uuids})
+ return portal_catalog.searchResults({'UID': uuids}, sort_on='sortable_title')
def child_folders(self):
return [IContentListingObject(x) for x in self.child_folders_brains()]