Addresses ordered by nickname

This commit is contained in:
Juan Ferrer Toribio 2018-02-15 16:11:44 +01:00
parent a3cfb155e0
commit e6a753d1cf
1 changed files with 1 additions and 2 deletions

View File

@ -38,7 +38,7 @@ module.exports = function(Client) {
},
skip: (params.page - 1) * params.size,
limit: params.size,
order: ['isDefaultAddress DESC', 'isActive DESC'],
order: ['isDefaultAddress DESC', 'isActive DESC', 'nickname DESC'],
include: {observations: 'observationType'}
};
@ -67,5 +67,4 @@ module.exports = function(Client) {
response('total', total);
});
};
};