<?xml version="1.0" encoding="windows-1252"?>
<node id="998048" title="$a &lt;=&gt; $b" created="2012-10-09 14:13:22" updated="2012-10-09 14:13:22">
<type id="115">
perlquestion</type>
<author id="994288">
truthseeker66</author>
<data>
<field name="doctext">
&lt;p&gt;I see a line, "@sorted = sort {$a &lt;=&gt; $b} @array;" &lt;br&gt;
&lt;/p&gt;

&lt;p&gt;
The text book I read says, "When you need to sort data in &lt;br&gt;
numerical order, you have to add  an argument to the sort&lt;br&gt;
statement. 

What confuses me is '$a &lt;=&gt; $b'. &lt;br&gt;
Could you explain what this line do? Can I use '$c &lt;=&gt; $d'&lt;br&gt; instead? 
&lt;/p&gt;

Thank you

</field>
</data>
</node>
