0

how to sort of alphabetical orders of string ?

https://code.sololearn.com/cI5OsIo6fEJ6/?ref=app

11th Sep 2017, 2:25 AM
harish deshlahare
harish deshlahare - avatar
3 Antworten
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.
11th Sep 2017, 11:18 PM
Mikhael Anthony
Mikhael Anthony - avatar
11th Sep 2017, 2:34 AM
Hatsy Rei
Hatsy Rei - avatar
0
ok thanks
2nd Oct 2017, 8:42 AM
harish deshlahare
harish deshlahare - avatar