我有这个数组结果,想根据名称排序
$arr = array
(0 => array
(
(name) => Medianas empresas
(count) => 17
[applied] =>
[url] => /es/index.php?option=com_virtuemart&view=category&Itemid=230&usage=Medianas+empresas
)
1 => array
(
[name] => Grandes empresas y gobierno
[count] => 8
[applied] =>
[url] => /es/index.php?option=com_virtuemart&view=category&Itemid=230&usage=Grandes+empresas+y+gobierno
)
2 => array
(
[name] => Microempresas
[count] => 9
[applied] =>
[url] => /es/index.php?option=com_virtuemart&view=category&Itemid=230&usage=Microempresas
)
)
结果应该是这样的,
$arr = array
(
1 => array
(
[name] => Grandes empresas y gobierno
[count] => 8
[applied] =>
[url] => /es/index.php?option=com_virtuemart&view=category&Itemid=230&usage=Grandes+empresas+y+gobierno
)
0 => array
(
(name) => Medianas empresas
(count) => 17
[applied] =>
[url] => /es/index.php?option=com_virtuemart&view=category&Itemid=230&usage=Medianas+empresas
)
2 => array
(
[name] => Microempresas
[count] => 9
[applied] =>
[url] => /es/index.php?option=com_virtuemart&view=category&Itemid=230&usage=Microempresas
)
)