I have home object : id
, FirstName
, Lastname
, Fees[ ]
Fees is object contain Amount description DueDate ...
home object include the Fees array
I have list of homes and every home has array/list from fees
I need to sort the fees depend on the Duedate in each object
for (int i = 0; i < homes.Length; i++)
{
homes[i].Fees = homes[i].Fees.OrderBy(si => si.DueDate).ToArray();
}
Can I find one statement instead of four statements?