Sort a list from another list IDs

docs = docs.OrderBy(d => docsIds.IndexOf(d.Id)).ToList();

Leave a Comment