Not quite following what you want to achieve, but at a guess, you want to link the values to the names?
Why not create a Class and have a generic List, that way you can sort it.
public class MyClass
{
public int Id { get; set; }
public string Name { get; set; }
public MyClass()
{
}
public MyClass(int id, string name)
{
Id = id;
Name = name;
}
}
That way when you are populating your Id and name string (Which is what I am guessing you are)
You can have a List of MyClass...
public List<MyClass> MyClasses = new List<MyClass>();
MyClasses.Add(new MyClass(1, "Name1"));
MyClasses.Add(new MyClass(2, "Name2"));
MyClasses.Add(new MyClass(3, "Name3"));
MyClasses.Add(new MyClass(4, "Name4"));
MyClasses.Sort();
You can then even create your own sorting methods.