title: Arrange PHP array in ascending order by its value, preserving key associations
body: <p>How can I arrange my array to ascending order looking on its value?
  This is my array:</p>
  
  <pre><code>array(4){
      ["id"]=&gt;
        int(3)
      ["batch_code"]=&gt;
        int(4)
      ["date"]=&gt;
        int(2)
      ["name"]=&gt;
        int(1)
  }
  </code></pre>
  
  <p>I'm expecting the result to be:</p>
  
  <pre><code>array(4){
      ["name"]=&gt;
        int(1)
      ["date"]=&gt;
        int(2)
      ["id"]=&gt;
        int(3)
      ["batch_code"]=&gt;
        int(4)
  }
  </code></pre>