Why not use a sorted dictionary?
var list1 = new List<int> { 50, 100, 14, 57, 48, 94 }
var list2 = new List<string> { "A", "B", "C", "D", "E", "F" };
var dict = new SortedDictionary<int, string>();
for (int i = 0; i < list1.Count; i++)
{
dict.Add(list1[i], list2[i]);
}
You'll now be able to access the values in the correct order.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…