title: Sorting, updating and presenting async response data in a HTML table
body: <p>I've got an app that issues multiple async calls to a backend; each async response will be an array of <code>{date, string}</code> values.</p>
  
  <p>I'd like to present the responses of each of these async calls as they arrive, in a sorted table in my web browser (ordered by date).  As subsequent responses to the other async calls arrive, I want the sorted table to be updated in real time.</p>
  
  <p>For example, the first async response might be <code>[{'2012-02-10', 'ABC'}, {'2012-01-19', 'DEF'}, {'2012-03-01', 'GHI'}]</code>, and I'd want to see something like <code>&lt;table&gt;&lt;tr&gt;&lt;td&gt;2012-01-19&lt;/td&gt;&lt;td&gt;DEF&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;2012-02-10&lt;/td&gt;&lt;td&gt;ABC&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;2012-03-01&lt;/td&gt;&lt;td&gt;GHI&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</code> rendered in my browser immediately.</p>
  
  <p>If a second async response of <code>[{'2011-12-09', 'JKL'}]</code> appears some time later, I want the HTML to then be changed to <code>&lt;table&gt;&lt;tr&gt;&lt;td&gt;2011-12-09&lt;/td&gt;&lt;td&gt;JKL&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;2012-01-19&lt;/td&gt;&lt;td&gt;DEF&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;2012-02-10&lt;/td&gt;&lt;td&gt;ABC&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;2012-03-01&lt;/td&gt;&lt;td&gt;GHI&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</code></p>
  
  <p>The effect I'm after is to have a table of results in my browser, being progressively updated with <strong>sorted</strong> data as the various async responses turn up.  The table would grow in size as each new async response is received, as the new <code>{date, string}</code> elements appear in the correct date sequence with the data that's already being displayed.</p>
  
  <p>This probably isn't a unique scenario, so I'm guessing there's a way of doing this that would be considered 'best practice' - possibly using jQuery UI.  If so, could someone please point me towards a 'howto' or example? - I haven't been able to find anything suitable using Google.</p>
  
  <p>Thanks in advance</p>