title: How to sort Alphanumeric String
body: <p>I have a problem with sorting strings which include integers. If I use the below code I get sorting like:
  1some, 2some, 20some, 21some, 3some, some</p>
  
  <p>However I want it sorted like:
  1some, 2some, 3some, 20some, 21some, some</p>
  
  <p>How can I do this?</p>
  
  <p>Thanks!</p>
  
  <pre><code>Collections.sort(selectedNodes,
      new Comparator&lt;DefaultMutableTreeNode&gt;() {
      @Override
      public int compare(DefaultMutableTreeNode o1,
          DefaultMutableTreeNode o2) {
          return o1.getUserObject().toString()
              .compareTo(o2.getUserObject().toString());
      }
      });
  </code></pre>