<md-table-container>
<table md-table>
<thead md-head md-order="myOrder">
<!-- when the user clicks this cell, the myOrder variable will get the value 'nameToLower' -->
<th md-column md-order-by="dessert.value">Dessert (100g serving)</th>
<!-- the variable myOrder will not be changed when this cell is clicked -->
<th md-column md-numeric>Calories</th>
</thead>
<tbody md-body>
<!-- we can let ng-repeat sort the columns for us -->
<tr ng-repeat="dessert in desserts | orderBy: myOrder">
<td>{{ (dessert.value1 == 0)?0 : dessert.value2)}}</td>
</tr>
</tbody>
</table>
</md-table-container>
My column is an expression on column value.
eg:
what should I give in md-order-by