Commit 19521702e0403b50a63ddf9f90b8a355590d2220

Authored by Eric Fernandez
1 parent e1d75b56f2
Exists in master and in 1 other branch develop

order by fec

Showing 1 changed file with 4 additions and 0 deletions   Show diff stats
src/js/controllerCombustibles.js
... ... @@ -39,6 +39,10 @@ angular.module('focaCrearFactura')
39 39  
40 40 $scope.mangueras = productosByMangera;
41 41  
  42 + $scope.mangera.despachos.sort(function (a, b) {
  43 + return a.FEC - b.FEC;
  44 + });
  45 +
42 46 $scope.aceptar = function (despacho) {
43 47 $uibModalInstance.close(despacho);
44 48 };