I just finished a coding competition where one of the problems required me to sort an array of strings, but numerically based on the number that appeared first in the string. for example:
String[] array =
{{"18.sdfahsdfkjadf"},
{"1.skjfhadksfhad"},
{"2.asldfalsdf"}};
would need to be sorted as 1.sk... first, 2.as..., and then 18.sd... last. But if you use (in Java) Arrays.sort(array), it would be ordered as 1, 18, then 2 because its going off the the first char first and not as a number.