<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Thu, 23 May 2013 12:45:02 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Chris Hartjes' Blog: Sorting Relationship Results In Doctrine 1.2]]></title>
      <guid>http://www.phpdeveloper.org/news/13974</guid>
      <link>http://www.phpdeveloper.org/news/13974</link>
      <description><![CDATA[<p>
Doctrine allows you to set up relationships to link data in various tables together. Unfortunately, those aren't always in the order they need to be in. In a new post to his blog <i>Chris Hartjes</i> shows you <a href="http://www.littlehart.net/atthekeyboard/2010/02/04/sorting-relationship-results-in-doctrine-1-2-2/">how to sort these relationship results</a> just by adding a simple line to your request.
</p>
<blockquote>
I started digging around via search engine. Took me about an hour to find the solution. First, it took me half the time to dive deep enough to find out WHERE I can define the default sort order. Surprisingly, it was in an area that made total sense but I could not find before.
</blockquote>
<p>
You can see an example of it in the "hasMany" call in his code snippet - the addition of the "orderBy" option and the value showing the sorting order. Here's <a href="http://stackoverflow.com/questions/134379/returning-query-results-in-predefined-order">the StackOverflow page</a> that gave him the answer he needed.
</p>]]></description>
      <pubDate>Fri, 05 Feb 2010 10:51:32 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Customizing WordPress Search Results to Sort by Title]]></title>
      <guid>http://www.phpdeveloper.org/news/12464</guid>
      <link>http://www.phpdeveloper.org/news/12464</link>
      <description><![CDATA[<p>
DevShed has <a href="http://www.devshed.com/c/a/PHP/Customizing-WordPress-Search-Results-to-Sort-by-Title/">a new tutorial</a> posted today looking at two methods that you can use to sort the search results from your WordPress blog my title instead of by date - a bit of code and a plugin.
</p>
<blockquote>
Sorting search results by post title in WordPress is often useful, if your website needs its entries to be sorted alphabetically. As a quick background, WordPress is the most popular open source, free blogging/CMS platform. However, the default search results are sorted by date, so there is no easy way to sort them alphabetically except to edit the core WordPress search functionally source code.
</blockquote>
<p>Here's the two options:</p>
<ul>
<li>Updates to the Query.php file to change up the "order by" value to work for the post_title and ascending/descending sort orders
<li>The <a href="http://www.php-developer.org/wordpress-sort-search-result-by-title-plug-in/">Sort Search Results by Title</a> plugin that lets you keep away from the WordPress source and change the results order with a drop-in plugin
</ul>]]></description>
      <pubDate>Wed, 06 May 2009 09:30:09 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Markus Wolff's Blog: ActiveRecord enhancements]]></title>
      <guid>http://www.phpdeveloper.org/news/6238</guid>
      <link>http://www.phpdeveloper.org/news/6238</link>
      <description><![CDATA[<p>
<i>Markus Wolff</i> <a href="http://blog.wolff-hamburg.de/archives/10-ActiveRecord-enhancements.html">finally got the time</a> to work on a project he's developed but hasn't had the time to enhance - <a href="https://ssl.limbourg.com/svn/CWAC/trunk/library/CWAC/ActiveRecord.php">CWAC_ActiveRecord</a>.
</p>
<blockquote>
After two weeks I finally managed to find a bit of time to continue working on CWAC_ActiveRecord. Requested by my friend Arnaud was the setConnection() method, that allows to reuse existing PDO objects with CWAC_ActiveRecord. Before this, you could only pass a DSN with the config array and a new connection would always be created.
</blockquote>
<p>
He <a href="http://blog.wolff-hamburg.de/archives/10-ActiveRecord-enhancements.html">also added</a> limit() and orderby() methods to help narrow down your queries.
</p>]]></description>
      <pubDate>Mon, 11 Sep 2006 08:16:27 -0500</pubDate>
    </item>
  </channel>
</rss>
