<?xml version="1.0"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Forum posts to 'Archive'</title>
		<link>http://www.silverstripe.org/archive/rss</link>
		<atom:link href="http://www.silverstripe.org/archive/rss" rel="self" type="application/rss+xml" />
		<description></description>

		
		<item>
			<title>Re: sorting in the control Children</title>
			<link>http://www.silverstripe.org/archive/show/63699?start=0#post63815</link>
			<description>&lt;p&gt;I'm not quite sure you can do that in the templates, at least I've never investigated far enough to do so. Is there any reason to go against the MVC model?&lt;/p&gt;&lt;p&gt;You &lt;em&gt;may&lt;/em&gt;, be able to do this, in your model class:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;function FilteredChildren($filter = 'ID DESC') {&lt;br /&gt;   return DataObject::get('Page', &quot;ParentID = {$this-&amp;gt;ID}&quot;, $filter);&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Then you could go:&lt;/p&gt;&lt;p&gt;&amp;lt;% control FilteredChildren('Title DESC') %&amp;gt;&lt;/p&gt;&lt;p&gt;If you leave the parameter out, it uses &quot;ID DESC&quot; - the default. However, I've not tested this,  the templating system might not allow it.&lt;/p&gt;&lt;p&gt;Cheers,&lt;br /&gt;Sean&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: sorting in the control Children &lt;a href=&quot;http://www.silverstripe.org/archive/show/63699?start=0#post63815&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/63699?start=0#post63815&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 30 Apr 2008 17:06:55 +1200</pubDate>
			<dc:creator>Sean</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/63699?start=0#post63815</guid>
		</item>
		
		<item>
			<title>sorting in the control Children</title>
			<link>http://www.silverstripe.org/archive/show/63699#post63699</link>
			<description>&lt;p&gt;Hello,&lt;br /&gt;After reading tutorials and a few docs about data managment, I wonder if this is possible to sort data at template level, typicaly in the &lt;br /&gt; &amp;lt;% control Children %&amp;gt;&lt;br /&gt;tag.&lt;br /&gt;I realize that this would be a little agains MVC model...&lt;br /&gt;Many thanks,&lt;br /&gt;Eric&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: sorting in the control Children &lt;a href=&quot;http://www.silverstripe.org/archive/show/63699#post63699&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/show/63699#post63699&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 30 Apr 2008 10:59:41 +1200</pubDate>
			<dc:creator>grandsapin1673</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/63699#post63699</guid>
		</item>
		

	</channel>
</rss>