<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: cmp-length code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Sat, 11 Oct 2008 16:28:04 GMT</pubDate>
    <description>DZone Snippets: cmp-length code</description>
    <item>
      <title>cmp-length - compare the length of two series and return -1, 0, or 1, to support stable sorts by length</title>
      <link>http://snippets.dzone.com/posts/show/2769</link>
      <description>&lt;code&gt;&lt;br /&gt;    ; Support func for stable sort comparator&lt;br /&gt;    cmp-length: func [a [series!] b [series!] /local len-a len-b] [&lt;br /&gt;        len-a: length? a&lt;br /&gt;        len-b: length? b&lt;br /&gt;        case [&lt;br /&gt;            len-a &lt; len-b [-1]&lt;br /&gt;            len-a &gt; len-b [1]&lt;br /&gt;            len-a = len-b [0]&lt;br /&gt;        ]&lt;br /&gt;    ]&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Mon, 02 Oct 2006 23:19:39 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/2769</guid>
      <author>gregg.irwin (Gregg Irwin)</author>
    </item>
  </channel>
</rss>
