sortCategories

Takes a category array and sorts it
Parameters Summary
array & $categories