title: How can input and appear in the text input automatically like according to alphabetical sort
body: <p>How can input and appear automatically in the text which is matching on some sorts on history drop down list, which means autocomplete during input, I used class="dropdown-menu", it can just appear the input history， 
  but it can not appear automatically during inputting like according to alphabetical sort? how can I use typeahead in my list example?</p>
  
  <pre><code>&lt;div class="input-group-btn"&gt;
      &lt;input type="text" class="form-control dropdown-toggle" ng-model="search.searchboxinput" data-toggle="dropdown" 
          aria-haspopup="true" aria-expanded="false"  placeholder="Enter search" style="width: 400px"/
      &lt;ul class="dropdown-menu"&gt;
          &lt;li ng-repeat="r in search.history"&gt;
              &lt;a href="#" ng-click="search.setHistory(r)"&gt;{{r}}&lt;/a&gt;
          &lt;/li&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>