Thank you for reaching out. The Ageing Summary can only be grouped by date rather than by invoice number.
You can sort by invoice number in the Sales section and you can also run an Invoice List report.
Each of these reports can be exported to Excel and sorted, if need be.
Please let me know if you have any other questions at all.