Fixing issues with the menu provider. I was using incorrect action hook to add admin menus. Also, added a missing helper function and removed the array_sort function as I thought it was not necessary.