May i know how to store all the data in the sorted list into hashtable?

Use Dictionary<K,V> instead of Hashtable class.

Dictionary<int, string> obj = new Dictionary<int, string>();
 obj.Add(101, "foo");
 obj.Add(102, "bar");

 foreach (KeyValuePair<int, string> entry in obj)
         Console.WriteLine(entry.Key + " " + entry.Value);
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.