diff --git a/modules/ticket/front/sale/index.html b/modules/ticket/front/sale/index.html
index 74cb101f4..2b3674a75 100644
--- a/modules/ticket/front/sale/index.html
+++ b/modules/ticket/front/sale/index.html
@@ -63,7 +63,7 @@
Visible
Available
Id
- Quantity
+ Quantity
Item
Price
Disc
@@ -73,7 +73,7 @@
-
+
@@ -232,7 +232,7 @@
vn-tooltip="Add item"
vn-bind="+"
icon="add_circle"
- ng-click="$ctrl.add()"
+ ng-click="$ctrl.cambiarOrden('quantity')"
disabled="!$ctrl.isEditable">
diff --git a/modules/ticket/front/sale/index.js b/modules/ticket/front/sale/index.js
index f3fb89d04..075532d8f 100644
--- a/modules/ticket/front/sale/index.js
+++ b/modules/ticket/front/sale/index.js
@@ -7,6 +7,12 @@ class Controller extends Section {
super($element, $);
this._sales = [];
this.manaCode = 'mana';
+ this.ordenarPor = 'quantity';
+ }
+
+ cambiarOrden(columna) {
+ this.ordenarPor = columna;
+ console.log(this.ordenarPor);
}
get manaCode() {