<?xml version="1.0" encoding="windows-1252"?>
<node id="330340" title="Re: group based array sort" created="2004-02-19 15:07:36" updated="2005-08-14 20:11:51">
<type id="11">
note</type>
<author id="35324">
Trimbach</author>
<data>
<field name="doctext">
Unless you're intent on reinventing the wheel, something like [http://search.cpan.org/~bryce/Sort-Tree-1.08/lib/Sort/Tree.pm|Sort::Tree] looks like it does what you want.
&lt;div class="pmsig"&gt;
&lt;div class="pmsig-35324"&gt;
&lt;p&gt;&lt;a href="mailto:gblackburn@mac.com"&gt;Gary Blackburn&lt;/a&gt;&lt;br&gt;
Trained Killer
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
330330</field>
<field name="parent_node">
330330</field>
</data>
</node>
