If invoices should be sorted for the domestic market in the Invoices - Domestic selection, and for the foreign market in the Invoices - Foreign selection:
This can be done in additional settings/Order Management/Sort invoices for domestic market in Invoices - Domestic
By activating this functionality, invoices will be sorted into either domestic or foreign invoices based on the country.