Good day all,
I want to swap two strings in a single line based on its alphabetic order. This swapping is only applicable for the Author name not more than that.
Example:
Arun 2012, Gopi 2010, Dinesh 2012. Computer Networks, Tata McGraw Hill. 745:19-22
In this line author names Likely Arun, Dinesh, Gopi have to swap in alphabetical order and saved in a same file for reference.
OUTPUT
Arun 2012, Dinesh 2012, Gopi 2010. Computer Networks, Tata McGraw Hill. 745:19-22
How could it possible to swap exactly the string array?
Note:
Every (Multiple)author name is separated by comma(,) and end with (.) full stop
Deepakkumar G.