title: Sorting li by id value
body: <p>I need to sort the list ascending or descending with ID value of the <code>LI</code> tag once I click the sort button. If it is in ascending order, it must sort to descending and vice versa.</p>
  
  <p>eg:</p>
  
  <pre><code> &lt;ul id="place-list"&gt;
        &lt;li id="0"&gt;Paris&lt;/li&gt;
        &lt;li id="1"&gt;greece&lt;/li&gt;
        &lt;li id="2"&gt;London&lt;/li&gt;
   &lt;/ul&gt;
  </code></pre>
  
  <p>I need to sort it without using the <code>tsort</code> function in jQuery-tinysort.
  How can I do this?</p>