I would like to know how using Linq, I could sort the List if every member in List has EntityData property, which is a class:

```
List<Line> profilesLines = new List<Line>();
Line line = new Line(...);
line.EntityData = new StructuralPart { Guid = "123456", OtherPropertA = 2, Other PropertyB = 3};

```

I know how to sort a List if the properties after which sorting should be done are not inside a class:

```
List<Line> SortedList = profilesLines.OrderBy(ent => ent.EntityData).ToList();

```

But is it possible to make a statement in one line that would cast EnitityData to "StructuralPart" and then sort in based on properties defined in that class?