Hi;<br>
I have this code:<br>
<br>
<table cellpadding="0" width="75%" border="0"<br>
tal:define="category python:getattr(request, 'category', '');<br>
items python:here.EMarket.marketItems.getItemsInCategory(category);<br>
sort_on python:(('name', 'cmp', 'desc'),);<br>
items python:sequence.sort(items, sort_on);<br>
start python:getattr(request, 'start', 0);<br>
batch python:modules['ZTUtils'].Batch(items, size=6*here.EMarket.in_row, start=start);<br>
previous python:batch.previous;<br>
next python:batch.next"><br>
<tr><br>
<td align="center" class="text"><br>
<a tal:condition="previous" tal:attributes="href string:${request/URL0}?category=${category}&start:int=${previous/first}">&lt;&lt;Previous</a>&nbsp;&nbsp;&nbsp;<a tal:condition="next" tal:attributes="href string:${request/URL0}?category=${category}&start:int=${next/first}">Next&gt;&gt;</a><br>
</td><br>
</tr><br>
<tr><br>
<td align="center"><br>
<br>
<div tal:condition="batch" tal:omit-tag=""><br>
<br>
<div tal:condition="python:here.EMarket.in_row == 1" tal:omit-tag=""><br>
<span tal:repeat="item batch" tal:omit-tag=""><br>
<span metal:use-macro="here/AddToCart_frame_content/macros/marketitem_one"/> <br>
<br>
<br>
It sorts the products by name correctly when I display the products (as you can see at http://lariman.com and click "Store" then "cabuchones"), but if you click on one of the products, it shows a different product than the one you clicked! Now, this code works fine without the "sort_on" part, so I suspect the problem is in the batching and the "item batch", which for some reason isn't sorting as I specify. Suggestions?<br>
TIA,<br>
Tony<br>
<div class="AOLPromoFooter">
<hr style="margin-top:10px;" />
AOL now offers free email to everyone. Find out more about what's free from AOL at <a href="http://www.aol.com?ncid=AOLAOF00020000000437" target="_blank"><b>AOL.com</b></a>.<br />
</div>