bugfix for queries of pages, orderby was not returned

main v0.5.2
HerrHase 3 weeks ago
parent 7f6b830310
commit 7da3916f29

@ -1,6 +1,6 @@
{
"name": "@site-o-mat/core",
"version": "0.5.1",
"version": "0.5.2",
"build": "webpack",
"author": "Björn Hase <me@herr-hase.wtf>",
"main": "index.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) {

Loading…
Cancel
Save