I have a list of objects.
I sort this list by Code by writing this line:

```
Result.Sort(delegate(Position p1, Position p2) { return p1.Code.CompareTo(p2.Code); });

```

But I want to sort this line first by Code and then by Name.
How to I do this?