<div> Thanks!<br>
</div>

<div> <br>
</div>

<div> <br>
</div>
-----Original Message-----<br>
From: Andreas Jung &lt;lists@zopyx.com&gt;<br>
To: tonylabarbara@aol.com; zope@zope.org<br>
Sent: Thu, 27 Sep 2007 3:43 pm<br>
Subject: Re: [Zope] ZMySQLDA Question<br>
<br>






<div id="AOLMsgPart_1_f06d4d01-6792-4569-b1db-5d6449f1776f" style="margin: 0px; font-family: Tahoma,Verdana,Arial,Sans-Serif; font-size: 12px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">

&nbsp;<br>

--On 27. September 2007 15:37:33 -0400 <a href="mailto:tonylabarbara@aol.com">tonylabarbara@aol.com</a> wrote:&nbsp;<br>
&nbsp;<br>

&gt; Hi;&nbsp;<br>

&gt; I want to do something like this in my Page Template:&nbsp;<br>

&gt; mysql&gt; select * from products order by name, newRow;&nbsp;<br>

&gt;&nbsp;<br>

&gt; Now, I know I can do this:&nbsp;<br>

&gt;&nbsp;<br>

&gt; tal:define="items python:sequence.sort(items, (('name', 'cmp', 'asc'),))"&nbsp;<br>

&gt;&nbsp;<br>

&gt; but that only orders by name, not by name *and* newRow. Any ideas?&nbsp;<br>

&gt;&nbsp;<br>
&nbsp;<br>

YES! You read the fine documentation:&nbsp;<br>
&nbsp;<br>

&lt;<a href="http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/AdvZPT.stx" target="_blank">http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/AdvZPT.stx</a>&gt;&nbsp;<br>
&nbsp;<br>

-aj&nbsp;<br>


</div>
 <!-- end of AOLMsgPart_1_f06d4d01-6792-4569-b1db-5d6449f1776f -->

<div class="AOLPromoFooter">
<hr style="margin-top:10px;" />
Email and AIM finally together. You've gotta check out free <a href="http://o.aolcdn.com/cdn.webmail.aol.com/mailtour/aol/en-us/index.htm?ncid=AOLAOF00020000000970" target="_blank">AOL Mail</a>!<br/>
</div>