Home snippetsLinq4 September 2024C SharpVarious linq queriesSorting a list from another list IDs docs = docs.OrderBy(d => docsIds.IndexOf(d.Id)).ToList();