mirror of
https://github.com/strapi/strapi.git
synced 2025-12-27 07:03:38 +00:00
Set asc as default
This commit is contained in:
parent
f91be5ce63
commit
ba16a0b7c5
@ -454,7 +454,7 @@ module.exports = {
|
||||
if (_.includes(['_start', '_limit'], key)) {
|
||||
result = convertor(value, key);
|
||||
} else if (key === '_sort') {
|
||||
const [attr, order] = value.split(':');
|
||||
const [attr, order = 'ASC'] = value.split(':');
|
||||
result = convertor(order, key, attr);
|
||||
} else {
|
||||
const suffix = key.split('_');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user