title: sort an array in php not working
body: <p>I want to sort an array. My array look like this</p>
  
  <pre><code>    Array ( [bookid] =&gt; 16 [book_name] =&gt; 22 [created_date] =&gt; 16 [hash_key] =&gt; 18 )
  </code></pre>
  
  <p>I want to sort by value like </p>
  
  <pre><code>   Array (  [book_name] =&gt; 22 [hash_key] =&gt; 18 [created_date] =&gt; 16  [bookid] =&gt; 16)
  </code></pre>
  
  <p>if any one know about this please help me.</p>