[0] => Array (
[term] => punk
[term_html] => <a href=""> punk </a>
)
[1] => Array (
[term] => conflict
[term_html] => <a href=""> conflict </a>
)
[2] => Array (
[term] => Crass
[term_html] => <a href=""> Crass </a>
)
[3] => Array (
[term] => bct 2
[term_html] => <a href="">
)
How can I sort this array alphabetically based on 'term' of the array inside array?
i tried this:
function sortByOrder($a, $b) {
return $search_terms_html[term];
}
uasort($search_terms_html, 'sortByOrder');
but it doesn't work :(