In Java , I want to compare and sort strings that contain a character and a number. For example:

A15, D35, A17, C45, B27, C30 should be sorted

A15 A17 B27 C30 C45 D35. I am not really sure how to compare two of those elements because they contain a string and a number. Can anyone help me please?