sort/rsort problems in php
<p>im having troubles with sort functions.</p>

<p>When i try sort in array a got bad order results.. For example:</p>

<pre><code>$arr = array("Cero","Uno","dos","Tres","Cuatro","Cinco","Seis","Siete");
sort($arr);
foreach($arr as $key =&gt; $value){
    echo $key . "=&gt;" . $value . "&lt;br/&gt;";
}
</code></pre>

<p>Write :</p>

<pre><code>0=&gt;Cero
1=&gt;Cinco
2=&gt;Cuatro
3=&gt;Seis
4=&gt;Siete
5=&gt;Tres
6=&gt;Uno
7=&gt;dos //wtf, last item are "d" ?!
</code></pre>

<p>If i try with rsort i got this:</p>

<pre><code>0=&gt;dos //again, last item are "d" ?!
1=&gt;Uno
2=&gt;Tres
3=&gt;Siete
4=&gt;Seis
5=&gt;Cuatro
6=&gt;Cinco
7=&gt;Cero
</code></pre>

<p>I tried asort, arsort, sort and rsort, but always returns a bad order.
You know why? or a method to fix it?
Thanks!</p>
