
diff --git a/src/main/webapp/app/entities/property/property.controller.js b/src/main/webapp/app/entities/property/property.controller.js
index a5fca01..a168b24 100644
--- a/src/main/webapp/app/entities/property/property.controller.js
+++ b/src/main/webapp/app/entities/property/property.controller.js
@@ -20,10 +20,22 @@
vm.listByFilter = [];
vm.filterCritera = {};
// vm.filterCritera.location = 'Barcelona';
-
vm.isAuthenticated = null;
vm.account = null;
+ vm.orderCriteria = {};
+ vm.orderCriteria.criteria = 'price';
+ vm.orderCriteria.rev = true;
+
+ vm.changeOrder = function () {
+
+ if(vm.orderCriteria.rev ===true){
+ vm.orderCriteria.rev = false;
+ }else if(vm.orderCriteria.rev ===false){
+ vm.orderCriteria.rev = true;
+ }
+ };
+
$scope.$on('authenticationSuccess', function() {
getAccount();
});