Skip to content

Commit

Permalink
Add 'sort: false' to filteredContent
Browse files Browse the repository at this point in the history
  • Loading branch information
broerse committed Jul 4, 2015
1 parent b437137 commit f4e04ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions app/controllers/posts.js
Expand Up @@ -16,12 +16,11 @@ export default Ember.ArrayController.extend({
totalPagesBinding: "pagedContent.totalPages",

filteredContent: function() {
var arrangedContentArray = Ember.makeArray(this.get('arrangedContent'));
return computedFilterByQuery(
arrangedContentArray,
this.get('arrangedContent'),
['title', 'body', 'author', 'excerpt'],
this.get('query'),
{ conjunction: 'and' }
{ conjunction: 'and', sort: false}
);
}.property('arrangedContent.@each.title', 'arrangedContent.@each.author', 'query')
});
});
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -26,7 +26,7 @@
"ember-cli-babel": "^5.0.0",
"ember-cli-content-security-policy": "0.4.0",
"ember-cli-dependency-checker": "^1.0.0",
"ember-cli-filter-by-query": "1.0.2",
"ember-cli-filter-by-query": "1.1.0",
"ember-cli-font-awesome": "0.0.9",
"ember-cli-htmlbars": "0.7.6",
"ember-cli-ic-ajax": "0.1.1",
Expand Down

0 comments on commit f4e04ef

Please sign in to comment.