Sort a list from another list IDs
I have a list with some identifiers like this: List<long> docIds = new List<long>() { 6, 1, 4, 7, 2 }; Morover, I have another list of <T> items, which are represented by the ids described above. List<T> docs = GetDocsFromDb(…) I need to keep the same order in both collections, so that the items … Read more