[ZCM] [ZC] 209/ 1 Request "dtml-tree sort is random on non-existent property"

Collector: Zope Bugs and Patches ... zope-coders@zope.org
Sat, 09 Feb 2002 05:34:14 -0500


Issue #209 Update (Request) "dtml-tree sort is random on non-existent property"
 Status Pending, Zope/bug medium
To followup, visit:
  http://collector.zope.org/Zope/209

==============================================================
= Request - Entry #1 by Anonymous User on Feb 9, 2002 5:34 am

Take this Tree example:

<dtml-tree Content single="true" branches_expr="objectValues('Folder')" sort="displayorder">
  <dtml-if "meta_type=='Folder'">
    <a href="<dtml-var BASE0><dtml-var "Content.rootpath"><dtml-var tree-item-url>" target="main">
     <dtml-var title_or_id></a>  
  <dtml-else>
  </dtml-if>
</dtml-tree>

If the property 'displayorder' is missing, objects are sorted randomly each time tree is loaded. Perhaps a default alphabetic sort?
==============================================================