This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
You'll need a custom comparator that, when comparing, splits the strings based on the space (hint: String.split), then converts the array elements to Integers (or Longs, depending on the length), and then compares these.
As for the comparing of the Integers, you'll need to compare the separate parts. Something like this: