title: Sorting a List<Number>
body: <p>How to sort a <code>List&lt;Number&gt;</code>?</p>
  
  <p><strong>Example:</strong></p>
  
  <pre><code>List&lt;Number&gt; li = new ArrayList&lt;Number&gt;(); //list of numbers
  li.add(new Integer(20));
  li.add(new Double(12.2));
  li.add(new Float(1.2));
  </code></pre>