fix #1292. Make the sort order in project view the same as context view

This commit is contained in:
Reinier Balt 2012-06-27 14:07:57 +02:00
parent ec18ec64cd
commit 5d703975a3

View file

@ -1,5 +1,5 @@
class Project < ActiveRecord::Base
has_many :todos, :dependent => :delete_all
has_many :todos, :dependent => :delete_all, :order => 'todos.due IS NULL, todos.due ASC, todos.created_at ASC'
has_many :notes, :dependent => :delete_all, :order => "created_at DESC"
has_many :recurring_todos