<div>when sorting using &lt;...tal:repeat subsection python:sequence.sort(subsections,(('title','nocase','asc'),))&quot;&gt; </div>
<div>&nbsp;</div>
<div>I get the following error: </div>
<div>&nbsp;</div>
<div>Module DocumentTemplate.sequence.SortEx, line 134 in nocase </div>
<div>AttributeError: 'NoneType' has no attribute 'lower' </div>
<div>&nbsp;</div>
<div>When I switch the 'nocase' to 'cmp' the sort defaults to sorting by order of entry or something. </div>
<div>&nbsp;</div>
<div>Any help would be greatly appreciated. </div>
<div>&nbsp;</div>
<div>Thanks. </div>