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) {