<!DOCTYPE html>
<html ng-app="demo">
<head>
<meta charset="utf-8" />
<title>AngularJS</title>
<script src="https://code.angularjs.org/1.5.4/angular.js"></script>
<script>
var app = angular.module('demo', []);
app.controller('MainCtrl', function($scope, $filter) {
$scope.objects = [{index: 10}, {index: 1}, {index: 5}];
$scope.objects = $filter('orderBy')($scope.objects, 'index');
});
</script>
</head>
<body ng-controller="MainCtrl">
<div ng-repeat="object in objects">
<p class='inndex'> {{ object.index }}</p>
</div>
</body>
</html>