orderBy not working as expected: Angularjs orderBy not working as expected: Angularjs angularjs angularjs

orderBy not working as expected: Angularjs


Have a look at below html

<!DOCTYPE html><html ng-app="app"><head>    <title></title>    <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.min.js"></script></head><body>    <div ng-controller="item">        <ul>            <li ng-repeat="item in items|orderBy:'name'">                {{item.name}}            </li>        </ul>    </div>    <script>        var AppModule = angular.module('app', []);        function item($scope) {            $scope.items = [{ name: 'tur' }, { name: 'abc' }, { name: 'xyx' }];        }    </script></body></html>