Changed categoriesObject to categories (as array)
categories array now sorts alphabetically