Skip to content

Commit ff210a6

Browse files
author
James Vidler
authored
Merge pull request #83 from agility/content-list-sort-fix
changed sort property on sort content list to content id
2 parents 3f2029f + bdaf75c commit ff210a6

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@
1717
"url": "git+https://github.com/agility/agility-content-fetch-js-sdk.git"
1818
},
1919
"author": "Agility CMS",
20-
"contributors": ["James Vidler", "Joel Varty", "Joshua Isaac"],
20+
"contributors": [
21+
"James Vidler",
22+
"Joel Varty",
23+
"Joshua Isaac"
24+
],
2125
"license": "MIT",
2226
"bugs": {
2327
"url": "https://github.com/agility/agility-content-fetch-js-sdk/issues"

test/getContentList.tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ describe('getContentList:', function() {
193193
api.getContentList({
194194
referenceName: 'posts',
195195
locale: 'en-us',
196-
sort: 'properties.versionID',
196+
sort: 'properties.contentID',
197197
direction: api.types.SortDirections.DESC
198198
})
199199
.then(function(contentList) {

0 commit comments

Comments
 (0)