How about using LINQ To Objects to sort for you?
Say you have a IList<Car>
, and the car had an Engine
property, I believe you could sort as follows:
from c in list
orderby c.Engine
select c;
Edit: You do need to be quick to get answers in here. As I presented a slightly different syntax to the other answers, I will leave my answer - however, the other answers presented are equally valid.