To sort invoices according to the category please follow below steps.
Go to expenses + >> Select expenses >> Click on Select category option >> Select the category.