+ 3
Can you explain what do you want to do? Sort a string containing names or something else?
And are all the names in a single string or a container of strings?
For the first :
https://code.sololearn.com/c1ksn2xGsHw7/?ref=app
If its the second , simply use the sort function as in the main of the above code.