Sort dropdown list by text rather than value
<p>I have dropdown list as follow:</p>

<pre><code>&lt;select id="DropdownID"&gt;
    &lt;option value="1"&gt;Ccc&lt;/option&gt;
    &lt;option value="2"&gt;Aaa&lt;/option&gt;
    &lt;option value="3"&gt;Bbb&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>but i want dropdown elements sorted by text not value, in alphabetical order:</p>

<pre><code>&lt;select id="DropdownID"&gt;
    &lt;option value="2"&gt;Aaa&lt;/option&gt;
    &lt;option value="3"&gt;Bbb&lt;/option&gt;
    &lt;option value="1"&gt;Ccc&lt;/option&gt;        
&lt;/select&gt;
</code></pre>

<p>I fill it on this way:</p>

<pre><code>Dictionary&lt;int, string&gt; myDataDictionary = new Dictionary&lt;int, string&gt;();

// (...)

DropdownID.DataSource = myDataDictionary;
DropdownID.DataTextField = "value";
DropdownID.DataValueField = "key";
DropdownID.DataBind();
</code></pre>

<p>Even if values in dictionary are sorted correctly, in dropdown they are always ordered by value.</p>

<p>How to sort items in dropdow by text rather than by value ?</p>
