title: How do I access the first key of an ‘associative’ array in JavaScript?
body: <p>I have a js 'associative' array, with </p>
  
  <pre><code>array['serial_number'] = 'value'
  </code></pre>
  
  <p>serial_number and value are strings.
  e.g. <code>array['20910930923'] = '20101102'</code></p>
  
  <p>I sorted it by value, works fine.
  Let's say I get back the object 'sorted';</p>
  
  <p>Now I want to access the first KEY of the 'sorted' array.
  How do I do it? I can't think I need an iteration with</p>
  
  <pre><code>for (var i in sorted)
  </code></pre>
  
  <p>and just stop after ther first one...</p>
  
  <p>thanks</p>
  
  <p>edit: just to clarify, I know that js does not support associative arrays (that's why I put it in high commas in the Title).</p>