title: How to sort a bi-dimensional javascript array?
body: <pre><code>var global=[];
  var value=[50,1,4,29];
  var title=["d","b","c","a"];
  
  title.forEach(function(title,i) {
      global[title]=value[i];
  })
  </code></pre>
  
  <p>I would like to sort the global array by value but I can't figure out how.</p>
  
  <p>I precise I can't use any library jquery,underscore...</p>
  
  <p>thanks !</p>
  
  <p>the goal is to know what object has the less value.
  a,b,c,d have values 50,1,4,29</p>
  
  <p>I can sort values but how to know what's the name associated to this value ?</p>