<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Sordid Details, of a sort</title>
	<link>http://ystoreblog.com/blog/2006/05/sordid-details-of-a-sort/</link>
	<description>Tips, Tricks, and Best Practices</description>
	<pubDate>Thu, 28 Aug 2008 14:25:34 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: Jacob Swartwood</title>
		<link>http://ystoreblog.com/blog/2006/05/sordid-details-of-a-sort/#comment-37900</link>
		<dc:creator>Jacob Swartwood</dc:creator>
		<pubDate>Sat, 25 Aug 2007 07:03:48 +0000</pubDate>
		<guid>http://ystoreblog.com/blog/2006/05/sordid-details-of-a-sort/#comment-37900</guid>
		<description>Mattison, I doubt you are still checking this thread, but just in case anyone else reads this post and has a similar question...

I would suggest using the FIND-ALL operator to sort only the ids that have a price. I don't know the back end programming for RTML, but FIND-ALL should be a O(n) operation at the most. Thus cutting out undesirable ids from your sequence first should have the additional benefit of shaving a bit of overhead off the sort as well.

Also, using the REVERSE operator will certainly work, but why run an additional operation on the list? Sheridan's solution is more proper.</description>
		<content:encoded><![CDATA[<p>Mattison, I doubt you are still checking this thread, but just in case anyone else reads this post and has a similar question&#8230;</p>
<p>I would suggest using the FIND-ALL operator to sort only the ids that have a price. I don&#8217;t know the back end programming for RTML, but FIND-ALL should be a O(n) operation at the most. Thus cutting out undesirable ids from your sequence first should have the additional benefit of shaving a bit of overhead off the sort as well.</p>
<p>Also, using the REVERSE operator will certainly work, but why run an additional operation on the list? Sheridan&#8217;s solution is more proper.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mattison</title>
		<link>http://ystoreblog.com/blog/2006/05/sordid-details-of-a-sort/#comment-3948</link>
		<dc:creator>Mattison</dc:creator>
		<pubDate>Mon, 15 Jan 2007 20:21:09 +0000</pubDate>
		<guid>http://ystoreblog.com/blog/2006/05/sordid-details-of-a-sort/#comment-3948</guid>
		<description>Thanks for the information.

I also found -- looking through the various RTML tags -- that if you put the REVERSE tag on the INDEXED-SORT, you get the reverse sort order.

One other question:
When I use the sort-item-by-price template, can I ask the INDEXED-SORT to exclude all ids without prices?

Right now, if I reverse the sort by price, so highest to lowest, it lists all ids without price first.

Of course, if sort by price, lowest to highest, all ids without price appear at the end of the list.

One final off-topic question:
Is there any easy RTML way to paginate section pages, say 12 or 15 items per page?

Thanks again for the help.</description>
		<content:encoded><![CDATA[<p>Thanks for the information.</p>
<p>I also found &#8212; looking through the various RTML tags &#8212; that if you put the REVERSE tag on the INDEXED-SORT, you get the reverse sort order.</p>
<p>One other question:<br />
When I use the sort-item-by-price template, can I ask the INDEXED-SORT to exclude all ids without prices?</p>
<p>Right now, if I reverse the sort by price, so highest to lowest, it lists all ids without price first.</p>
<p>Of course, if sort by price, lowest to highest, all ids without price appear at the end of the list.</p>
<p>One final off-topic question:<br />
Is there any easy RTML way to paginate section pages, say 12 or 15 items per page?</p>
<p>Thanks again for the help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sheridan Rawlins</title>
		<link>http://ystoreblog.com/blog/2006/05/sordid-details-of-a-sort/#comment-3759</link>
		<dc:creator>Sheridan Rawlins</dc:creator>
		<pubDate>Thu, 11 Jan 2007 00:25:00 +0000</pubDate>
		<guid>http://ystoreblog.com/blog/2006/05/sordid-details-of-a-sort/#comment-3759</guid>
		<description>In order to reverse the sort order you need to tweak the body of the INDEXED-SORT to switch the arguments and the boolean in the call to -nil. I have added example code above.
</description>
		<content:encoded><![CDATA[<p>In order to reverse the sort order you need to tweak the body of the INDEXED-SORT to switch the arguments and the boolean in the call to -nil. I have added example code above.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mattison</title>
		<link>http://ystoreblog.com/blog/2006/05/sordid-details-of-a-sort/#comment-3752</link>
		<dc:creator>Mattison</dc:creator>
		<pubDate>Wed, 10 Jan 2007 20:23:26 +0000</pubDate>
		<guid>http://ystoreblog.com/blog/2006/05/sordid-details-of-a-sort/#comment-3752</guid>
		<description>Thanks for the information. 

How can the sort-item-by-price template be tweaked to sort price from highest-to-lowest (it defaults as lowest to highest)?

Thanks for the help.</description>
		<content:encoded><![CDATA[<p>Thanks for the information. </p>
<p>How can the sort-item-by-price template be tweaked to sort price from highest-to-lowest (it defaults as lowest to highest)?</p>
<p>Thanks for the help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jed</title>
		<link>http://ystoreblog.com/blog/2006/05/sordid-details-of-a-sort/#comment-104</link>
		<dc:creator>Jed</dc:creator>
		<pubDate>Sat, 27 May 2006 15:41:02 +0000</pubDate>
		<guid>http://ystoreblog.com/blog/2006/05/sordid-details-of-a-sort/#comment-104</guid>
		<description>Wow!  Thanks for the great info.</description>
		<content:encoded><![CDATA[<p>Wow!  Thanks for the great info.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
