Commit a079478f authored by Jérome Perrin's avatar Jérome Perrin

use consistent sorting with other methods

parent 3df2c446
...@@ -478,7 +478,8 @@ class Document(DocumentExtensibleTraversableMixin, XMLObject, UrlMixin, ...@@ -478,7 +478,8 @@ class Document(DocumentExtensibleTraversableMixin, XMLObject, UrlMixin,
if not self.getReference(): if not self.getReference():
return self return self
catalog = self.getPortalObject().portal_catalog catalog = self.getPortalObject().portal_catalog
kw = dict(reference=self.getReference(), sort_on=(('version','descending'),)) kw = dict(reference=self.getReference(),
sort_on=(('version', 'descending', 'SIGNED'),))
if language is not None: if language is not None:
kw['language'] = language kw['language'] = language
result_list = catalog(**kw) result_list = catalog(**kw)
......
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