How do I sort in my dropdown? This is my dropdown. How do I sort it out?
Calling DropDown
<select class="form-control col-sm-6" name="cbxCodTipo" id="cbxCodTipo"></select>
Of course I'll upload the values, but I just want to know how to order via Asp.Net only. I put down my complete combo. Sort by status (Description).
Riding DropDown
<div class="col-md-6">
<select class="form-control col-sm-6" name="cbxCodTipo" id="cbxCodTipo" >
<option value="AC">ACRE</option>
<option value="AL">ALAGOAS</option>
<option value="AM">AMAZONAS</option>
<option value="AP">AMAPÁ</option>
<option value="BA">BAHIA</option>
<option value="CE">CEARÁ</option>
<option value="DF">DISTRITO FEDERAL</option>
<option value="ES">ESPÍRITO SANTO</option>
<option value="GO">GOIÁS</option>
<option value="MA">MARANHÃO</option>
<option value="MG">MINAS GERAIS</option>
<option value="MS">MATO GROSSSO DO SUL</option>
<option value="MT">MATO GROSSO</option>
<option value="PA">PARÁ</option>
<option value="PB">PARAÍBA</option>
<option value="PE">PERNMBUCO</option>
<option value="PI">PIAUÍ</option>
<option value="PR">PARANÁ</option>
<option value="RJ">RIO DE JANEIRO</option>
<option value="RN">RIO GRANDE DO NORTE</option>
<option value="RO">RONDÔNIA</option>
<option value="RR">RORAIMA</option>
<option value="RS">RIO GRANDE DO SUL</option>
<option value="SC">SANTA CATARINA</option>
<option value="SE">SERGIPE</option>
<option value="SP">SÃO PAULO</option>
<option value="TO">TOCANTINS</option>
</select>
</div>