projects_controller.rb ordering by name while maintaining the subproject relationship, is it possible?

Added by Matt Brown over 7 years ago

Hello,

I just migrated a dusty old 0.8.4 instance to 1.3.1 (soon 1.3.2), and have come across an undesirable change.

It appears that the project list is now presented ordered by the 'lft' column in redmine.projects, and not ascending by 'name'.

format.html {
      @projects = Project.visible.find(:all, :order => 'lft')
}

Is it possible to have projects_controller.rb order by name while maintaining the subproject relationship?

I can even avoid a feature request to have it properly implemented as configurable in the UI... I just want to know what the ruby code should look like.

Any assistance is appreciated.

Thanks,

Matt