public static void sortDescending(char[] charArray) {
        int index = 0;
        char value = 0;
        
        for(int i = 1; i < charArray.length; i++) {
            index = i;
            value = charArray[index];
            
            while(index > 0 && value > charArray[index - 1]) {
                charArray[index] = charArray[index - 1];
                
                index--;
            }
            
            charArray[index] = value;
        }
    }
public static void sortDescending ( char [ ] charArray ) { int index = 0 ; char value = 0 ; for ( int i = 1 ; i < charArray . length ; i ++ ) { index = i ; value = charArray [ index ] ; while ( index > 0 && value > charArray [ index - 1 ] ) { charArray [ index ] = charArray [ index - 1 ] ; index -- ; } charArray [ index ] = value ; } }
Sort the char array in descending order using this algorithm.

@param charArray the array of chars that we want to sort