From 19521702e0403b50a63ddf9f90b8a355590d2220 Mon Sep 17 00:00:00 2001 From: Eric Fernandez Date: Sat, 27 Jul 2019 14:20:55 -0300 Subject: [PATCH] order by fec --- src/js/controllerCombustibles.js | 4 ++++ 1 file changed, 4 insertions(+) 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); }; -- 1.9.1