Permalink
Browse files

Fixes a bug where article are not displayed the way they should be

  • Loading branch information...
1 parent e8069b5 commit 8363c8a0946dbe796bffc5d5466bfb9ac1196c5d @fdv fdv committed Dec 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/article.rb
View
@@ -119,7 +119,7 @@ def self.search_with_pagination(search_hash, paginate_hash)
list_function << "page(paginate_hash[:page])"
list_function << "per(paginate_hash[:per_page])"
-
+ list_function << "order('published_at desc, created_at desc')"
@mvz

mvz Jan 29, 2013

Contributor

@fdv, can you recall what the problem was? It seems the behavior is not the same on all DBs, see #127.

eval(list_function.join('.'))
end

0 comments on commit 8363c8a

Please sign in to comment.