/// <summary> /// Sort the sub entity list by the english name recursively. /// </summary> public void SortSubEntitiesByEnglishName() { _subEntities = SubEntities.OrderBy(p => p.English).ToList(); foreach (var entry in SubEntities) { entry.SortSubEntitiesByEnglishName(); } }
/// <summary> /// Sort the sub entity list by the geocode recursively. /// </summary> public void SortSubEntitiesByGeocode() { _subEntities = SubEntities.OrderBy(p => p.Geocode).ToList(); foreach (var entry in SubEntities) { entry.SortSubEntitiesByGeocode(); } }