Currently, I am working on an Angular application that is designed to keep track of tuxedo rentals. The main feature of the app is a table that displays information from an array stored in the controller.
The initial task I completed was listing the items in the table by return date in ascending order. This was achieved by utilizing the lodash orderBy filter.
However, I am facing a challenge with the second task: if multiple records have the same return date, they should be sorted by phone number in ascending order. While sorting the phone numbers individually is not complex, my difficulty lies in figuring out how to sort only those entries with the same date without altering the order of the return dates for the entire collection.