We are using nTiers and I have this list of objects that i need to sort by a property but then by another property,i have the following but i cant figure out how to to the ThenBy
, I have seen examples with List<object>
but not with TList<object>
.
TList<Client> clients = service.GetClientsById(cid);
clients.Sort("ClientOrder");
but then i need to sort it by the ClientName
. I saw an example in another post using LINQ, but i cant get this to work like that (example below),which would allow me to do a ThenBy
List<Order> SortedList = objListOrder.OrderBy(o=>o.OrderDate).ToList();