<?xml version="1.0" encoding="windows-1252"?>
<node id="966552" title="Re: Schwartzian transform deformed with impunity" created="2012-04-23 04:58:08" updated="2012-04-23 04:58:08">
<type id="11">
note</type>
<author id="446266">
salva</author>
<data>
<field name="doctext">
&lt;i&gt;&lt;blockquote&gt;going "no warnings" of course is not an option for me&lt;/blockquote&gt;&lt;/i&gt;

&lt;p&gt;Why not? there is nothing wrong in disabling them, at least if you know why they are happening:

&lt;c&gt;
@sorted = map{ $_-&gt;[0]} sort{
               no warnings 'numeric';
               $a-&gt;[2] &lt;=&gt; $b-&gt;[2]
          } map{[$_, split/sequence/]} @unsorted;
&lt;/c&gt;

&lt;p&gt;However, for this particular case and as already stated in other monks answers, it is easier to extract just the number.

&lt;p&gt;Besides that, if you are concerned about the sort performance, you should try [mod://Sort::Key] and [mod://Sort::Key::Radix]:

&lt;c&gt;
use Sort::Key::Radix 'ukeysort';
my @sorted = ukeysort { /(\d+)/; $1 } @unsorted;
&lt;/c&gt;</field>
<field name="root_node">
966478</field>
<field name="parent_node">
966478</field>
</data>
</node>
