private FormGrid(ModelMetadata formSectionMetadata) { Rows = formSectionMetadata.Properties.Select(s => new GriddedPropertyMetadata { Property = s, Grid = s.GetGrid() }) .OrderBy(o => o.Grid.Row) .ThenBy(o => o.Grid.Column) .GroupBy(o => o.Grid.Row) .Select(o => new FormGridRow(formSectionMetadata.GetFormSectionMeta(), o.ToList())) .ToList(); }