So I have an array with domain names
Array () {
[0] => Array () {
[id]=>int
[name]=>string
[something]=>string/int...
}
[38] => Array () {
}
}
I need to show the domain names in a table, I get them ordered by name ASC from the mysql table, loop trough the array and then convert the $domain['name'] to show the IDNs not like xn--sfasdf-dfg.com, but human readable. But this domain names go between W and Y, because they begin with X, what I want is to sort them by their unicode name някво-име.com (it starts with N) this domain name should be between M and O, not between W and Y. Does somebody knows how this can be done? I have searched in Google, but it seems nobody have wrote about such problem. I try usort and uasort php functions, but the order was completely wrong.
Thanks, Yani Krystev