title: Jquery. Order a list of names alphabetically
body: <p>I got a list of names (firstname and lastname) on a page. I want the user to be able to sort this list on either firstname or lastname using jQuery (or normal javascript). How can this be done?</p>
  
  <pre><code>&lt;ul&gt;
  &lt;li&gt;Michael Scott&lt;/li&gt;
  &lt;li&gt;Jonathan Torry&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>Very thankful for all input!</p>