I am trying to sort a list of strings for a Pacific island language (Chamorro). In this language, Ng is considered a single letter, and it appears after N in the alphabet. How can I sort the list of words so that Nai and Nunu both precede words starting with Ng ?
Update
Full alphabet:
A, Γ
, B, Ch, D, E, F, G, H, I, K, L, M, N, Γ, Ng, O, P, R, S, T, U, Y
Apart from Γ
, Γ and their lowercase versions, there are no other accents over other letters. Words can have apostrophes in them (for example, o'mak ), but they do not affect the sort order.
There is no locale for Chamorro, so I need to manually implement the sorting algorithm.
java internationalization collation
BJ Peter DeLaCruz
source share