diff --git a/src/index.js b/src/index.js index 0b50402..6e07a2a 100644 --- a/src/index.js +++ b/src/index.js @@ -205,7 +205,7 @@ module.exports = { } if (orderBy != null) { - let ascending = orderBy.startsWith("-"); + let ascending = !orderBy.startsWith("-"); let orderField = (ascending === true) ? orderBy