title: Sorting arrays by key number PHP
body: <p>I need to sort some arrays which keys are prices of products. I've used <code>ksort</code> and <code>krsort</code> and everything has worked as desired. The problem is when the number of the key has more than one figures, then it doesn't order properly.</p>
  <p><strong>Array example:</strong></p>
  <pre><code>$array = array(
   '11,45' =&gt; 'product1',
   '8,91' =&gt; 'product2',
   '12,14' =&gt; 'product3',
   '9,54' =&gt; 'product4
  );
  </code></pre>
  <p><strong>Result I got for order ascendent:</strong></p>
  <pre><code>11,45 - 12,14 - 8,91 - 9,54
  </code></pre>
  <p><strong>Result desired for order ascendent:</strong></p>
  <pre><code>8,91 - 9,54 - 11,45 - 12,14 
  </code></pre>