'''Really''' fixes #118. Now sorts the actions themselves as well as the contexts in the same order as one the home page.

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@146 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
bsag 2005-09-30 17:11:09 +00:00
parent 157d882483
commit 1043fefb1b

View file

@ -29,7 +29,7 @@ class FeedController < ApplicationController
#
def na_text
@contexts = @user.contexts.collect { |x| x.hide? ? nil:x }.compact.sort! { |x,y| x.position <=> y.position }
@not_done = @user.todos.collect { |x| x.done? ? nil:x }.compact.sort! {|x,y| x.context_id <=> y.context_id }
@not_done = @user.todos.collect { |x| x.done? ? nil:x }.compact.sort! {|x,y| x.created_at <=> y.created_at }
@headers["Content-Type"] = "text/plain; charset=utf-8"
end