I have a `IEnumerable<T>` list. - T is a custom type, one of the members of that type is an int called Id.

I also have a `Dictionary<int, int>`object the first int is an Id (this id will be in the `IEnumerable<T>` list. The second Int is a rating number.

I want to order the `IEnumerable<T>` list based on the rating inside `Dictionary<int, int>` - Highest First

I can do this by if statements and looping, but I have a feeling this can be done using a linq/lambda statement.

Any one got any ideas how this can be done?

I'm guessing something like `list.OrderBy(x => x.id == Dictionaryname. something something something`