From 7da3916f29ccd5742248e6c5ae9e8d95b04d5896 Mon Sep 17 00:00:00 2001 From: HerrHase Date: Fri, 3 Jan 2025 16:00:11 +0100 Subject: [PATCH] bugfix for queries of pages, orderby was not returned --- package.json | 2 +- src/queries/pages.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index e1f5659..44d82ef 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@site-o-mat/core", - "version": "0.5.1", + "version": "0.5.2", "build": "webpack", "author": "Björn Hase ", "main": "index.js", diff --git a/src/queries/pages.js b/src/queries/pages.js index 8be0afa..0758891 100644 --- a/src/queries/pages.js +++ b/src/queries/pages.js @@ -60,9 +60,9 @@ class Pages { this._findFiles(this._dirPath, options) - // + // orderBy if (options.orderBy && options.orderBy.length > 0) { - this.results = orderBy(options.orderBy, this._results) + this._results = orderBy(options.orderBy, this._results) } if (options.limit || options.offset) {