title: Hash of hash of list of lists in javascript
body: <p>I'm a perl programmer learning javascript. In perl, I would frequently use hashes to create 'data structures' from data returned from a database query. For example, I would build hashes like this:</p>
  
  <pre><code>*loop through list of data*
      push(@{$hash{$key1}{$key2}}, [$value1, $value2, $value3, $value4]);
  *endloop*
  </code></pre>
  
  <p>this would add a reference to the list of four values to a list in the hash (with multiple keys).</p>
  
  <p>I'm having a hard time finding information on how I would implement a similar structure in javascript. My goal is to read in a JSON file that has a list of objects (which has no particular order) and turn it into a hash so it can be sorted by the keys and then display it in an HTML table.</p>
  
  <p>Perhaps this is the wrong way to think about this problem and javascript will have a different approach. I'd like to know if what I'm trying to do is possible, the code to create the hash, and the code to access the hash.</p>
  
  <p>Thanks,
  Rob</p>