Addresses ordered by nickname
This commit is contained in:
parent
a3cfb155e0
commit
e6a753d1cf
|
@ -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);
|
||||
});
|
||||
};
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue