Erpnext sales invoice printing based on naming series

I have 2 naming series in the sales invoice, a customer has bills on both the series. i want to print account ledger naming series wise for a customer how can I do it.

@gdhelp03

Before printing report, sort those records by ID column which will list out all invoices and payments based on naming series sorted ascending or descending depending upon your choice.