Is this the best way to do this sort?
assets.OrderBy(a => a.GalleryItems != null && a.GalleryItems.FirstOrDefault() != null ? a.GalleryItems.OrderBy(gi => gi.SortOrder).First().SortOrder : 1000)
Basically I have a group of assets, which contain a group of gallery items with a sort order. I need to get the lowest sort order from this group and sort the assets by that. Gallery items can be null (it is coming through a service so I am unable to change this).