Sorting Alphanumeric strings

Numerical always gets the first priority, we need to select the string based on the postion of numberical. in tyui123 and bhfg12b – in the last position tyu i123 has 3 which is a numerical
.hence it gets priority