Converting string to char and sort in descending order (ascii)

I am creating a program which will make the user input integer (one after another), stored in array and display the integers in descending order. The program also ask to the user to input a string