I have an String Array i have fileterd from a database with output like this in Java
[ABCD XYZ M1210,
ABCD XYZ M149,
ABCD XYZ M5130,
ABCD XYZ N1420,
ABCD XYZ T11299,
ABCD XYZ S11044]
Im looking to sort my array as follows:
[ABCD XYZ M149,
ABCD XYZ M1210,
ABCD XYZ M5130,
ABCD XYZ N1420,
ABCD XYZ S11044,
ABCD XYZ T11299]
and it is the last element i specifically want
==> String theStringIWant = myStringArray.get(myStringArray.size() - 1);
What i need to dois first sort the letter after "XYZ" alphabetically and then sort the numerically after that so for example ABCD XYZ M1210 < ABCD XYZ M5130 as 5130 is greater than 1210.
Any help here would be much appreciated
*Any referencing to suitable libraries in java etc
Cheers