<?xml version="1.0" encoding="windows-1252"?>
<node id="175767" title="Re: Schwartzian Transform and memory allocation." created="2002-06-19 12:30:36" updated="2005-07-21 01:31:52">
<type id="11">
note</type>
<author id="77987">
ThingFish</author>
<data>
<field name="doctext">
More clarification here.. I do actually use a variable as an indice, as thelenm pointed out. The column to be sorted on is passed via query string and is plugged into the sort. Ex: &lt;code&gt;
@file_data = 
  map { $_-&gt;[0] } 
  sort { $a-&gt;[$variable] cmp $b-&gt;[$variable] } 
  map { [ $_, (split(/\|/)) ] } 
  @file_data;
&lt;/CODE&gt;</field>
<field name="root_node">
175743</field>
<field name="parent_node">
175743</field>
</data>
</node>
