Hello, I am writing a program to sort Spanish words.The letters are almost the same as the English alphabet, only with a few exceptions.
a,b,c,ch,d,e,f,g,h,i,j,k,l,ll,m,n,ñ,o,p,q,r,rr,s,t,u,v,w,x,y,z
Further, for this problem, assume that any pair of characters which can represent a letter does; for example, the combination ch would always mean the letter ch, not the letter c followed by the letter h.
Now if there wasn't the extra letters, I would be able to sort this easy, but can you guys help me think of an algorithm to help me sort it?