public
Description: Tracks is a GTD(TM) web application, built with Ruby on Rails
Homepage: http://www.rousette.org.uk/projects/
Clone URL: git://github.com/bsag/tracks.git
Click here to lend your support to: tracks and make a donation at www.pledgie.com !
fix the sort order for tag view. It is now the same as on the home page
lrbalt (author)
Fri Nov 14 02:40:10 -0800 2008
commit  f40c35276f82fc8d361df31f89c9718db7bb2ad3
tree    5fa31428944d9729c28beb82f7c7c6870c9e38e1
parent  33eba10e88e8c65f23ef0e1292ed66210c73c30c
...
383
384
385
386
 
387
388
389
...
391
392
393
 
394
395
396
...
383
384
385
 
386
387
388
389
...
391
392
393
394
395
396
397
0
@@ -383,7 +383,7 @@ class TodosController < ApplicationController
0
     
0
     @not_done_todos = tag_collection.find(:all, 
0
       :conditions => ['taggings.user_id = ? and state = ?', current_user.id, 'active'],
0
-      :order => 'todos.completed_at DESC, todos.created_at DESC')
0
+      :order => 'todos.due IS NULL, todos.due ASC, todos.created_at ASC')
0
     @hidden_todos = current_user.todos.find(:all, 
0
       :include => [:taggings, :tags, :context], 
0
       :conditions => ['tags.name = ? AND (todos.state = ? OR (contexts.hide = ? AND todos.state = ?))', @tag_name, 'project_hidden', true, 'active'],
0
@@ -391,6 +391,7 @@ class TodosController < ApplicationController
0
     @deferred = tag_collection.find(:all, 
0
       :conditions => ['taggings.user_id = ? and state = ?', current_user.id, 'deferred'],
0
       :order => 'show_from ASC, todos.created_at DESC')
0
+    
0
     # If you've set no_completed to zero, the completed items box isn't shown on
0
     # the tag page
0
     max_completed = current_user.prefs.show_number_completed

Comments