From 1043fefb1bdbd43cefbafd7692611d5583f40544 Mon Sep 17 00:00:00 2001 From: bsag Date: Fri, 30 Sep 2005 17:11:09 +0000 Subject: [PATCH] '''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 --- tracks/app/controllers/feed_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracks/app/controllers/feed_controller.rb b/tracks/app/controllers/feed_controller.rb index 92031cdd..e90ce6ff 100644 --- a/tracks/app/controllers/feed_controller.rb +++ b/tracks/app/controllers/feed_controller.rb @@ -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