title: Using the index in ng-options
body: <p>I have a select that shows the elements of an array. I want to bind this select to the index of the element. I have this code</p>
  
  <pre><code>var choices = [
    'One',
    'Two',
    'Three'
  ];
  
  &lt;select
    ng-model="model.choice"
    ng-options="idx as choice for (idx, choice) in choices"&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>That works but if the array has more than 10 elements the order of the options in the select does not match the order of the elements in the array. It seems that angular does a sort of the "value" attribute of the options which holds the index of the element in the array without leading zeros so the sort goes "1", "10", "2", "3", ...</p>
  
  <p>How can I workaround this and have the options enumerated in the same order they appear in the array?</p>