diff options
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/documents_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/documents_controller.rb b/app/controllers/documents_controller.rb index c9eecf4f7..9d9c5a7d0 100644 --- a/app/controllers/documents_controller.rb +++ b/app/controllers/documents_controller.rb @@ -28,7 +28,7 @@ class DocumentsController < ApplicationController documents = @project.documents.find :all, :include => [:attachments, :category] case @sort_by when 'date' - @grouped = documents.group_by {|d| d.created_on.to_date } + @grouped = documents.group_by {|d| d.updated_on.to_date } when 'title' @grouped = documents.group_by {|d| d.title.first.upcase} when 'author' |