Need to sort strings by part of the string
<p>Say I have an array of strings:</p>

<pre><code>String[] array = {
   "2183417234 somerandomtexthere",
   "1234123656 somemorerandomtexthere",
   "1093241066 andevenmore",
   "1243981234 you get what i mean",
   //etc

};
</code></pre>

<p>How would I sort this array using the long (it's a long) at the start of the string, so it'll end up looking like this:</p>

<pre><code>String[] array = {
   "1093241066 andevenmore",
   "1234123656 somemorerandomtexthere",
   "1243981234 you get what i mean",
   "2183417234 somerandomtexthere",
   //etc

};
</code></pre>

<p>I've tried everyting from making it an arraylist and using Collections#sort to creating my own comparator, to using a sorted map / tree map and I just can't figure it out.
Thanks.</p>
