<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/order</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 22 May 2013 18:47:04 GMT</pubDate>
<item>
<title>(Pascal) Ejercicio 33 - Algoritmo ordenamiento - MauricioM</title>
<link>http://snipplr.com/view/71090/ejercicio-33--algoritmo-ordenamiento/</link>
<description><![CDATA[ <p>Técnicas de Programación. Ejercicio 33 - Algoritmo selección (usando un array auxiliar)</p> ]]></description>
<pubDate>Wed, 08 May 2013 13:29:52 GMT</pubDate>
<guid>http://snipplr.com/view/71090/ejercicio-33--algoritmo-ordenamiento/</guid>
</item>
<item>
<title>(JavaScript) Alternative for \"for...in\" loop - hellowouter</title>
<link>http://snipplr.com/view/64239/alternative-for-forin-loop/</link>
<description><![CDATA[ <p>We are setting up two variables. The assignment in the middle part of the for loop is also tested for truthfulness — if it succeeds, the loop continues. Since i is incremented each time, items from the array will be assigned to item in sequential order. The loop stops when a "falsy" item is found (such as undefined).

Note that this trick should only be used for arrays which you know do not contain "falsy" values (arrays of objects or DOM nodes for example). If you are iterating over numeric data that might include a 0 or string data that might include the empty string you should use a standard for loop.

Note that if someone added new properties to Array.prototype, using a "for...in" loop is no option since the loop will also iterate over the new prototype properties.</p> ]]></description>
<pubDate>Fri, 30 Mar 2012 19:10:51 GMT</pubDate>
<guid>http://snipplr.com/view/64239/alternative-for-forin-loop/</guid>
</item>
<item>
<title>(PHP) Ordenar array bidimensional por parametro - serialk89</title>
<link>http://snipplr.com/view/62521/ordenar-array-bidimensional-por-parametro/</link>
<description><![CDATA[ <p>Ordena Array Bidimensional Asociativo de acuerdo a parametro del array.</p> ]]></description>
<pubDate>Fri, 13 Jan 2012 01:53:32 GMT</pubDate>
<guid>http://snipplr.com/view/62521/ordenar-array-bidimensional-por-parametro/</guid>
</item>
<item>
<title>(PHP) Ordenar Array Multidimensional PHP - n19ht</title>
<link>http://snipplr.com/view/61140/ordenar-array-multidimensional-php/</link>
<description><![CDATA[ <p>Ordena cualquier array multidimensional en base a un campo específico</p> ]]></description>
<pubDate>Thu, 24 Nov 2011 06:31:30 GMT</pubDate>
<guid>http://snipplr.com/view/61140/ordenar-array-multidimensional-php/</guid>
</item>
<item>
<title>(PHP) Wordpress custom sitemap shortcode following custom menu order - ablears</title>
<link>http://snipplr.com/view/54404/wordpress-custom-sitemap-shortcode-following-custom-menu-order/</link>
<description><![CDATA[ <p>Use a shortcode [sitemap] to render a sitemap ordered by custom menu order (Wordpress 3+).</p> ]]></description>
<pubDate>Thu, 26 May 2011 09:04:30 GMT</pubDate>
<guid>http://snipplr.com/view/54404/wordpress-custom-sitemap-shortcode-following-custom-menu-order/</guid>
</item>
<item>
<title>(Bash) ls - order by date - ragnarokkrr</title>
<link>http://snipplr.com/view/53818/ls--order-by-date/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 20 May 2011 03:40:32 GMT</pubDate>
<guid>http://snipplr.com/view/53818/ls--order-by-date/</guid>
</item>
<item>
<title>(jQuery) jQuery relocate element - nathanbweb</title>
<link>http://snipplr.com/view/52893/jquery-relocate-element/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 03 May 2011 00:20:48 GMT</pubDate>
<guid>http://snipplr.com/view/52893/jquery-relocate-element/</guid>
</item>
<item>
<title>(PHP) sample php display order (sorting)  for an array - donkeykong</title>
<link>http://snipplr.com/view/52569/sample-php-display-order-sorting--for-an-array/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 25 Apr 2011 19:43:38 GMT</pubDate>
<guid>http://snipplr.com/view/52569/sample-php-display-order-sorting--for-an-array/</guid>
</item>
<item>
<title>(SQL) sql order by with case - samwa</title>
<link>http://snipplr.com/view/50820/sql-order-by-with-case/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 18 Mar 2011 21:45:34 GMT</pubDate>
<guid>http://snipplr.com/view/50820/sql-order-by-with-case/</guid>
</item>
<item>
<title>(PHP) Custom sorting for previous/next post links - hussong</title>
<link>http://snipplr.com/view/48060/custom-sorting-for-previousnext-post-links/</link>
<description><![CDATA[ <p>Custom sorting for events based on a custom field
needs to be added to navigation-links.php
requires plugin: http://wordpress.org/extend/plugins/ambrosite-nextprevious-post-link-plus/</p> ]]></description>
<pubDate>Fri, 28 Jan 2011 22:52:30 GMT</pubDate>
<guid>http://snipplr.com/view/48060/custom-sorting-for-previousnext-post-links/</guid>
</item>
<item>
<title>(jQuery) Reverse order - alsodenn</title>
<link>http://snipplr.com/view/47900/reverse-order/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 26 Jan 2011 18:53:46 GMT</pubDate>
<guid>http://snipplr.com/view/47900/reverse-order/</guid>
</item>
<item>
<title>(Groovy) Sort list of objects - albertoprb</title>
<link>http://snipplr.com/view/47031/sort-list-of-objects/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 13 Jan 2011 08:06:49 GMT</pubDate>
<guid>http://snipplr.com/view/47031/sort-list-of-objects/</guid>
</item>
<item>
<title>(CSS) css border shorthand order - rumremix</title>
<link>http://snipplr.com/view/44205/css-border-shorthand-order/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 15 Nov 2010 18:22:15 GMT</pubDate>
<guid>http://snipplr.com/view/44205/css-border-shorthand-order/</guid>
</item>
<item>
<title>(PHP) Sort a multi-dimensional field - jmiller</title>
<link>http://snipplr.com/view/39290/sort-a-multidimensional-field/</link>
<description><![CDATA[ <p>Orders a multi-dimensional field (such as sorting multiple $orders by field 'id')</p> ]]></description>
<pubDate>Thu, 19 Aug 2010 08:49:08 GMT</pubDate>
<guid>http://snipplr.com/view/39290/sort-a-multidimensional-field/</guid>
</item>
<item>
<title>(Ruby) Sort one array by another - jatkins</title>
<link>http://snipplr.com/view/36504/sort-one-array-by-another/</link>
<description><![CDATA[ <p>Public domain. Return a multidimensional array of `array_to_sort` and `second_array`, sorted by the values of `array_to_sort`.</p> ]]></description>
<pubDate>Wed, 30 Jun 2010 07:27:14 GMT</pubDate>
<guid>http://snipplr.com/view/36504/sort-one-array-by-another/</guid>
</item>
<item>
<title>(Ruby) Insert a value into a numerically-ordered array in the correct order - jatkins</title>
<link>http://snipplr.com/view/36486/insert-a-value-into-a-numericallyordered-array-in-the-correct-order/</link>
<description><![CDATA[ <p>Public domain. Only works for integers. Passing `update_array` as "true" will return the original array with the new value inserted in the appropriate position; ignoring `update_array` will return the index at which the new value should be inserted.</p> ]]></description>
<pubDate>Wed, 30 Jun 2010 03:26:35 GMT</pubDate>
<guid>http://snipplr.com/view/36486/insert-a-value-into-a-numericallyordered-array-in-the-correct-order/</guid>
</item>
<item>
<title>(Other) Wordpress Page Order - dottDesign</title>
<link>http://snipplr.com/view/33544/wordpress-page-order/</link>
<description><![CDATA[ <p>Add to functions.php/* Page Order */include('library/functions/page-order.php');</p> ]]></description>
<pubDate>Thu, 29 Apr 2010 01:00:03 GMT</pubDate>
<guid>http://snipplr.com/view/33544/wordpress-page-order/</guid>
</item>
<item>
<title>(MySQL) Specify 'Order By' order - bradless</title>
<link>http://snipplr.com/view/27049/specify-order-by-order/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 25 Jan 2010 15:10:44 GMT</pubDate>
<guid>http://snipplr.com/view/27049/specify-order-by-order/</guid>
</item>
<item>
<title>(Ruby) Ruby class for easy version number natural order sorting - bananastalktome</title>
<link>http://snipplr.com/view/17734/ruby-class-for-easy-version-number-natural-order-sorting/</link>
<description><![CDATA[ <p>Probably not the most elegant solution, but it works. Needed this for a capistrano deploy task which shows the most recent tagged releases in my repository. Very bare bones, and needs tweaking if your versions are not in X.X.X.X format.</p> ]]></description>
<pubDate>Fri, 31 Jul 2009 11:49:29 GMT</pubDate>
<guid>http://snipplr.com/view/17734/ruby-class-for-easy-version-number-natural-order-sorting/</guid>
</item>
<item>
<title>(CSS) border / margin / padding etc.. shorthand order - thesmu</title>
<link>http://snipplr.com/view/17247/border--margin--padding-etc-shorthand-order/</link>
<description><![CDATA[ <p>TRouBLe

T - op
R - ight
o
u
B - ottom
L - eft
e</p> ]]></description>
<pubDate>Tue, 21 Jul 2009 04:31:57 GMT</pubDate>
<guid>http://snipplr.com/view/17247/border--margin--padding-etc-shorthand-order/</guid>
</item>
</channel>
</rss>