md-select options orderBy "code" Angular
<p>I'm new in Angular Material. I have a little problem with md-select.</p>

<p>html code</p>

<pre><code>&lt;md-input-container&gt;
        &lt;label layout="row" layout-align="start start"&gt;Text&lt;/label&gt;
        &lt;md-select name="selectText"  ng-model="textArray" required&gt;
            &lt;md-option value="text.code" ng-repeat="text in textArray | orderBy: 'text.code'" required&gt;{{ text.name }}&lt;/md-option&gt;
        &lt;/md-select&gt;
          &lt;div ng-messages="formText.selectText.$error" ng-show="formText.selectText.$dirty || formText.selectText.$touched"&gt;
            &lt;div ng-message="required"&gt;Select is Required &lt;/div&gt;
        &lt;/div&gt;
    &lt;/md-input-container&gt;
</code></pre>

<p>Angular code</p>

<pre><code>var textArray = [{name:"A", code:"5"},
{name:"B", code:"4"},
{name:"C", code:"3"},
{name:"D", code:"2"},
{name:"E", code:"1"}];

$scope.textArray = textArray;
</code></pre>

<p>I try to reorder options from md-select, using code, but the options are order by ('asc'), like (A, B ,C, D, E). Please can anyone help me? Thanks.</p>