public static void CreateFrom(IGroup result, List <IItemProperties> stamps) { List <IItemProperties> sortedStamps = stamps.OrderBy(x => x.ZOrder).ToList(); for (int i = 0; i < sortedStamps.Count; i++) { sortedStamps[i].ZOrder = i + 1; } result.Children = sortedStamps; result.CalculateSizeAndPosition(); PositionContainedStampsRelativeToCenter(result); }