Hi,
I have list account entity. I want to order them based on custom field defined for account entity which is defined as optional that means it can have null values. I am using late bound entity for some purpose. If I try to sort them based on custom field it give "key not found" exception.
Since that field may have some value in other account entity, I want to sort them based on ascending order.
Something similar below
var result = accountEntitites.OrderBy(p => p.customField == null) .ThenBy(p => p.
customField
);