diff --git a/src/js/controllerCombustibles.js b/src/js/controllerCombustibles.js index 3b5e3f8..e36ce9c 100644 --- a/src/js/controllerCombustibles.js +++ b/src/js/controllerCombustibles.js @@ -39,6 +39,10 @@ angular.module('focaCrearFactura') $scope.mangueras = productosByMangera; + $scope.mangera.despachos.sort(function (a, b) { + return a.FEC - b.FEC; + }); + $scope.aceptar = function (despacho) { $uibModalInstance.close(despacho); };