Multiple sheets are selected the most likely reason why the Sort and Filter icon is grayed out. Another reason for the Sort and Filter icon to be disabled is because the Sheet is protected. To protect a sheet, go to Review Tab and click on Unprotect Sheet.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.