diff --git a/query/sort.js b/query/sort.js index 0ec13c15..e62e2234 100644 --- a/query/sort.js +++ b/query/sort.js @@ -17,14 +17,14 @@ module.exports = function( params ){ }, { '_script': { - 'file': population, + 'file': popularity, 'type': 'number', 'order': 'desc' } }, { '_script': { - 'file': popularity, + 'file': population, 'type': 'number', 'order': 'desc' } diff --git a/test/unit/query/reverse.js b/test/unit/query/reverse.js index 7c10f52b..a2d17f9f 100644 --- a/test/unit/query/reverse.js +++ b/test/unit/query/reverse.js @@ -27,14 +27,14 @@ var sort = [ }, { '_script': { - 'file': population, + 'file': popularity, 'type': 'number', 'order': 'desc' } }, { '_script': { - 'file': popularity, + 'file': population, 'type': 'number', 'order': 'desc' } diff --git a/test/unit/query/search.js b/test/unit/query/search.js index 7c83ee1d..b8d505ff 100644 --- a/test/unit/query/search.js +++ b/test/unit/query/search.js @@ -27,14 +27,14 @@ var sort = [ }, { '_script': { - 'file': population, + 'file': popularity, 'type': 'number', 'order': 'desc' } }, { '_script': { - 'file': popularity, + 'file': population, 'type': 'number', 'order': 'desc' } diff --git a/test/unit/query/sort.js b/test/unit/query/sort.js index 06f615b2..bb2fa772 100644 --- a/test/unit/query/sort.js +++ b/test/unit/query/sort.js @@ -27,14 +27,14 @@ var expected = [ }, { '_script': { - 'file': population, + 'file': popularity, 'type': 'number', 'order': 'desc' } }, { '_script': { - 'file': popularity, + 'file': population, 'type': 'number', 'order': 'desc' }