0
how to sort of alphabetical orders of string ?
3 Réponses
0
to sort per character in string :
regardless your code is , String itself is array of char.
access the string per letter with (n) or [n] , then sort ,
some language already prepare build in sort function tough for array.
to sort array of string instead :
like i said before , build in sort() function for easier.
if you want to go hard way , convert them per char to ASCII , then compare it higher or lower.
+ 12
Refer:
https://code.sololearn.com/cpxLCtL8s1V4/?ref=app
Line 14 - 26
0
ok thanks