示例#1
0
 /// <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();
     }
 }
示例#2
0
 /// <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();
     }
 }