I have a page that renders alphabetically a directory of keywords (A, B, C, D....Z, 0, 1...9) and some of the keywords are in Hindi (devanagari).
My php code go through the alphabet array, sorts the keywords by first letter and renders columns for each letter with all the corresponding keywords that start with that same letter/number.
My problem is sorting the hindi alphabet array. My array is:
$hindi=array('क','ख','ग','घ','ङ','च','छ','ज','झ','ञ','ट','ठ','ड','ढ','ण','त','थ','द','ध','न','प','फ','ब','भ','म','य','र','ल','व','श','ष','स','ह','ळ','क','ष','ज्','ञ');
I have, for instance, the following keywords I wish to sort: एशिया खाना पकाना फोटोग्राफी भारतीय मसाला विध
I've tried out some approaches with no success and I'm rendering the hindi keywords just under "Hindi" column and unordered.
Is there a way to sort hindi characters using php?