SortedList, DropDownList (.NET Framework 2.0), and DropDownList's sort order not same as the SortedList; midnight blues
    SortedList<string, MyObject> myObjects = new SortedList<string, MyObject>();
    foreach (SecondObjectType secondObjectType in Repository<SecondObjectType>.FindAll(Where.SecondObjectType.Company.Id == companyId && Where.SecondObjectType.Active == 1))
    	{
    		if (!MyObjects.ContainsKey(SecondObjectType.MyObject.Name))
    			MyObjects.Add(SecondObjectType.MyObject.Name, SecondObjectType.MyObject);
    	}

ddl.DataSource = myObjects;
ddl.DataTextField = "Name";
ddl.DataValueField = "Id";
ddl.DataBind();	

Has anybody noticed an issue with DropDownList and databinding to a SortedList? The SortedList is sorted in the order I expect. But when the DropDownList is bound to the SortedList, the order displayed on the DropDownList is not same as the SortedList.

I am suspecting that the order is according to the MyObject.Id instead of the key of the SortedList. 

Any comments? What would be the best way / most efficient way / easiest way / best performance way to correct this? (not expecting an answer for best/efficient/easy, on shall suffice :) )

SortedList, DropDownList (.NET Framework 2.0), and DropDownList's sort order not same as the SortedList; midnight blues
===

    SortedList<string, MyObject> myObjects = new SortedList<string, MyObject>();
    foreach (SecondObjectType secondObjectType in Repository<SecondObjectType>.FindAll(Where.SecondObjectType.Company.Id == companyId && Where.SecondObjectType.Active == 1))
    	{
    		if (!MyObjects.ContainsKey(SecondObjectType.MyObject.Name))
    			MyObjects.Add(SecondObjectType.MyObject.Name, SecondObjectType.MyObject);
    	}

ddl.DataSource = myObjects;
ddl.DataTextField = "Name";
ddl.DataValueField = "Id";
ddl.DataBind();	

Has anybody noticed an issue with DropDownList and databinding to a SortedList? The SortedList is sorted in the order I expect. But when the DropDownList is bound to the SortedList, the order displayed on the DropDownList is not same as the SortedList.

I am suspecting that the order is according to the MyObject.Id instead of the key of the SortedList. 

Any comments? What would be the best way / most efficient way / easiest way / best performance way to correct this? (not expecting an answer for best/efficient/easy, on shall suffice :) )
