<tr md-row ng-repeat="row in filterBooking() | orderBy:'+name'"> for (var i=0; i<$scope.bookings.length; i++) { $scope.bookings[i].name = $scope.users.filter(function(_){ _.id === $scope.bookings[i].UserID })[0].name; }