I have a Generic List of Invoices (Custom class). Each Invoice has a header class and a list of lineitems, which is also a class.
How can i sort the List of invoices by a value that is found in the header class?
Invoice 1
HeaderInfo - InvoiceID DateCreated CreatedBy
LineItemInfo - CustomerID Amount
LineItemInfo - CustomerID Amount
LineItemInfo - CustomerID Amount
Invoice 2
HeaderInfo - InvoiceID DateCreated CreatedBy
LineItemInfo - CustomerID Amount
LineItemInfo - CustomerID Amount
I would like to sort my Invoice list by the DateCreated in the header of each invoice.
How can i sort the List of invoices by a value that is found in the header class?
Invoice 1
HeaderInfo - InvoiceID DateCreated CreatedBy
LineItemInfo - CustomerID Amount
LineItemInfo - CustomerID Amount
LineItemInfo - CustomerID Amount
Invoice 2
HeaderInfo - InvoiceID DateCreated CreatedBy
LineItemInfo - CustomerID Amount
LineItemInfo - CustomerID Amount
I would like to sort my Invoice list by the DateCreated in the header of each invoice.