3
$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 vector "smaller" increasingly by object attribute: "$scope.auxiliar.minimo"
See if this helps: https://docs.angularjs.org/api/ng/filter/orderBy
– StillBuggin
Have you tried something like: http://answall.com/questions/100068/order-um-array-objects-por-data/100076#100076
– Marconi