I want to write a program that take string numeric as input(eg,one,two,three etc) and output will be sorted by ascending order or descending order of that string and show it in string as given in input.
Example:
Input:five,two,seven,ten,four
Output:two,four,five,seven,ten