<?xml version="1.0" encoding="windows-1252"?>
<node id="1003690" title="Re^4: ordering array of sentences" created="2012-11-13 14:24:31" updated="2012-11-13 14:24:31">
<type id="11">
note</type>
<author id="872655">
welle</author>
<data>
<field name="doctext">
&lt;p&gt;What if my @sentences has a more complicated structure? I get @sentences from querying a Sqlite database with the following:&lt;/p&gt;
&lt;code&gt;
$sentences = $dbh-&gt;selectall_arrayref("SELECT ID, sentence FROM texts WHERE sentence REGEXP '(?i:$query)'");
&lt;/code&gt;
&lt;p&gt;As one can see, the result is made of two elements (ID and sentence). How can I read/manipulate in the code provided by choroba only the second element "sentence", preserving at the end of the sorting operation the same structure ID/sentence?&lt;/p&gt;</field>
<field name="root_node">
1003644</field>
<field name="parent_node">
1003665</field>
</data>
</node>
