app/tutoranimangularjs.js
/**
 * @name repeatControllerFn
 * @desc Repeat sample controller
 */
@name repeatControllerFn
@desc Repeat sample controller
@name repeatControllerFn @desc Repeat sample controller
function repeatControllerFn() {
    var rc = this;
    rc.items = [{ name: 'Adailton' }, { name: 'Claudioo' }, { name: 'Cleomar' },{ name: 'Davidd' }, { name: 'Filipe' }];
    rc.sortItems = function () {
        rc.items.sort(function (a, b) {
            return a[name] < b[name] ? -1 : 1
        });
    };
}
function repeatControllerFn ( ) { var rc = this ; rc . items = [ { name : 'Adailton' } , { name : 'Claudioo' } , { name : 'Cleomar' } , { name : 'Davidd' } , { name : 'Filipe' } ] ; rc . sortItems = function ( ) { rc . items . sort ( function ( a , b ) { return a [ name ] < b [ name ] ? - 1 : 1 } ) ; } ; }
@name repeatControllerFn
 @desc Repeat sample controller
@name repeatControllerFn @desc Repeat sample controller
/**
     * @name sortItems
     * @desc Sort items array
     **/