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