title: Javascript sort callback
body: <p>I need to sort a big list of Javascript items and I'm using the <code>sort</code> function like this:</p>
  
  <pre><code>var sorted_list = non_sorted.sort(function(a,b){
  // Sort stuff here
  });
  </code></pre>
  
  <p>What I'd like to do is to call a function when the <code>sort</code> function is done.</p>
  
  <p>Is it possible to add a callback function to sort or to trigger an event when when <code>sort</code> is over?</p>