Step 2: Sort the Array by Value and Return Only the Keys

Step 3: Trim "The ", "A ", "An " from the beginning of the title

Step 4: Sort the Full Catalog

To do this we will need to remove the early return from the function which was bypassing the sort. Instead, we will combine the two category conditionals. Either $category should be null (in this case we use every item) OR $category should match the item category.