From 7e619deb22322b7cc58f9d3608fbd5bede11dbb0 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Tue, 16 Jan 2024 01:07:49 +0100 Subject: [PATCH] Fix erroneous orderBy parsing --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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