Another LINQ-approach:
var orderedByIDList = from i in ids
join o in objectsWithIDs
on i equals o.ID
select o;
More Related Contents:
- C# List sorting with multiple range
- How to Sort a List by a property in the object
- IEnumerable vs List – What to Use? How do they work?
- Flatten List in LINQ
- Using LINQ to remove elements from a List
- Check whether an array is a subset of another
- Sort a list from another list IDs
- Quickest way to compare two generic lists for differences
- How can I get every nth item from a List?
- List OrderBy Alphabetical Order
- Select distinct using linq [duplicate]
- Linq select objects in list where exists IN (A,B,C)
- Differences between IQueryable, List, IEnumerator?
- Find the most occurring number in a List
- Does Distinct() method keep original ordering of sequence intact?
- how to check if object already exists in a list
- sort string-numbers [duplicate]
- How can I sort a List by multiple T.attributes?
- C#: How to convert a list of objects to a list of a single property of that object?
- Easiest way to Rotate a List in c#
- Count property vs Count() method?
- LINQ order by null column where order is ascending and nulls should be last
- How to find List has duplicate values in List [duplicate]
- List sort based on another list
- LINQ Custom Sort
- C# list.Orderby descending
- List complex sorting
- List.Except is not working
- Remove duplicate items from list in C#, according to one of their properties
- Use LINQ to move item to top of list