Sort a list from another list IDs October 15, 2022 by Tarik docs = docs.OrderBy(d => docsIds.IndexOf(d.Id)).ToList();