$scope.auxiliar.minimo = $scope.blocos[i].tamanhoTotal - processo.tamanho;
$scope.auxiliar.posicaoBlocoLivre = $scope.blocos[i];
$scope.menores.push($scope.auxiliar);
I want to sort my "minor" vector incrementally by object attribute: "$scope.auxiliar.minimo"