how to sort

if u have a file

C22S
E2S
S2227
T24R
A12P

so i want that in sort so that

E2S
A12P
C22S
T24R
S2227
what can be the option

What's the sorting method? My guess is you ignore all letters and consider numbers only?

it can be sorted on the based of alphabets also

sort -n file it will be ok

otherwise if alphabets and number is there how can be that
that is a question?

The thing is that you have to specify a criteria for sorting your input so that you get your output the way you described. And you need to specify criteria so next time when you have an input you apply that criteria and get results you expected on output.
My guess the criteria here is number of characters in a word, with lowest number ending on the top of the sort... but you have to supply criteria...