PHP script for sorting devanagari data properly