Permalink
Browse files

Sort entries DESC by created_at field. Closes #25

  • Loading branch information...
1 parent 5d7d95e commit 03765777fd1a41c88cce19489397d8c7982b47be hurrycane committed Aug 17, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rails_admin/active_record_support.rb
@@ -98,7 +98,7 @@ def properties
def merge_order(options)
@sort ||= options.delete(:sort) || "id"
- @sort_order ||= options.delete(:sort_reverse) ? "desc" : "asc"
+ @sort_order ||= options.delete(:sort_reverse) ? "asc" : "desc"
options.merge(:order => ["#{@sort} #{@sort_order}"])
end

0 comments on commit 0376577

Please sign in to comment.