Hi,
Ive written a program which is capable of sorting an array of ints e.g. array[6] = {4,6,-1,0,6,4} however i want to expand this so it will be able to order chars as well. With my code as it is, it will order chars correctly i.e. sort the numbers out first, then the chars however this relies on no int being greater than the ASCII equivalent decimal number of the char.
i am looking for some ideas on how to approach passing my sorting function an array such as {A,67,9,0,B,D} and for it to sort it to {0,9,67,A,B,D}. I already have the sorting algorithm in place for ints, i just need some ideas on how to expand it for chars.
Many thanks.