<html>
  <head>
    <title>Thinkster1 Angular</title>
    <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.19/angular.min.js"></script>
    <script src="app.js"></script>
  </head>
  <body ng-app="flapperNews" ng-controller="MainCtrl">
    <div ng-repeat="post in posts">
      {{post.title}} - upvotes: {{post.upvotes}}
    </div>
  </body>
</html>
<html>
  <head>
    <title>Thinkster1 Angular</title>
    <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.19/angular.min.js"></script>
    <script src="app.js"></script>
  </head>
  <body ng-app="flapperNews" ng-controller="MainCtrl">
    <div ng-repeat="post in posts | orderBy: '-upvotes'">
      {{post.title}} - upvotes: {{post.upvotes}}
    </div>
  </body>
</html>
Add angular filter to posts view.
Add angular filter to posts view.
