I have home object : id , FirstName, Lastname, Fees[ ]
Fees is object contain Amount description
home object include the Fees array
I have list of homes and every home has array/list from fees
I need to sort the homes depend on the total of Amount in fees
List <home> h = new List <home>();
Assuming you have an object structure like this:
You can sort it using the following statement: