<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="http://www.bytemycode.com/rssformat.xsl"?><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>byteMyCode: Snippets for json</title>
		<link>http://www.bytemycode.com</link>
		<description>Snippets for this tag.</description>
		<pubDate>Wed, 08 Oct 2008 02:30:15 +0000</pubDate>
		<copyright>1998-2008 </copyright>
		<language>en-us</language>
		<image>
		      <link>http://www.bytemycode.com</link>
		      <url>http://www.bytemycode.com/img/rss_title.gif</url>
		      <title>byteMyCode</title>
		</image>

	<item>
	<title>JavaScript N-Dimentional sort</title>
	<link>http://www.bytemycode.com/snippets/snippet/583/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/583/comments/</comments>
	<pubDate>Sun, 28 Jan 2007 13:18:02 +0000</pubDate>
	<dc:creator>Fordiman</dc:creator>
	<category>JavaScript, json, sort</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/583/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Sun. Jan. 28th, 2007  1:18 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/583/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_scripter.gif" align="middle" class="icon" alt="Scripter" /> <a href="http://www.bytemycode.com/members/member/Fordiman/" title="Scripter">Fordiman</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/json">json</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/sort">sort</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/583/comments/">0 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 14
			<p>Flexible sorting algorithm based on Quicksort with extra functionality, such as:<br />- Direction (ie: ascending or descending)<br />- Sort-by-path (eg: item.name, item.name.firstName or item[5])<br />- Sorting function (returns true if two items are already sorted)<br />- Type checking<br />- All constants and support functions are members of the Sort() function<br />- Testsuite with hooks for cscript and in-browser javascript, so you can tweak and optimize, and make sure it still works<br />- Environment agnostic (can use with, say, SpiderMonkey or .Net's jsc)</p>
		]]>
	</description>
</item>
	</channel>
</rss>