Commit 6da98ca3 authored by Sebastien Robin's avatar Sebastien Robin

sort the list of variations


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3188 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 71dec02d
......@@ -97,7 +97,8 @@ class Resource(XMLMatrix, CoreResource, Variated):
other_base_category_dict = dict([(i,1) for i in base_category_list])
try:
other_variations = self.searchFolder( \
portal_type=self.getPortalVariationTypeList())
portal_type=self.getPortalVariationTypeList(),
sort_on=[('title','ascending')])
except:
other_variations = []
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment