changeset 422:19549b0c417a live

Merge from branch bug_133
author Chris Cannam
date Tue, 10 May 2011 12:00:04 +0100
parents 6b3e9f512761 (current diff) a9921f3e9088 (diff)
children 50fd9c6b93a9
files
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/app/controllers/projects_controller.rb	Tue May 10 10:10:24 2011 +0100
+++ b/app/controllers/projects_controller.rb	Tue May 10 12:00:04 2011 +0100
@@ -59,7 +59,9 @@
         @offset ||= @project_pages.current.offset
         @projects = Project.visible_roots.all(:offset => @offset, :limit => @limit, :order => sort_clause) 
         if User.current.logged?
-          @user_projects = User.current.projects.sort_by(&:name)
+          # seems sort_by gives us case-sensitive ordering, which we don't want
+#          @user_projects = User.current.projects.sort_by(&:name)
+          @user_projects = User.current.projects.all(:order => :name)
         end
         render :template => 'projects/index.rhtml', :layout => !request.xhr?
       }