<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -383,7 +383,7 @@ class TodosController &lt; ApplicationController
     
     @not_done_todos = tag_collection.find(:all, 
       :conditions =&gt; ['taggings.user_id = ? and state = ?', current_user.id, 'active'],
-      :order =&gt; 'todos.completed_at DESC, todos.created_at DESC')
+      :order =&gt; 'todos.due IS NULL, todos.due ASC, todos.created_at ASC')
     @hidden_todos = current_user.todos.find(:all, 
       :include =&gt; [:taggings, :tags, :context], 
       :conditions =&gt; ['tags.name = ? AND (todos.state = ? OR (contexts.hide = ? AND todos.state = ?))', @tag_name, 'project_hidden', true, 'active'],
@@ -391,6 +391,7 @@ class TodosController &lt; ApplicationController
     @deferred = tag_collection.find(:all, 
       :conditions =&gt; ['taggings.user_id = ? and state = ?', current_user.id, 'deferred'],
       :order =&gt; 'show_from ASC, todos.created_at DESC')
+    
     # If you've set no_completed to zero, the completed items box isn't shown on
     # the tag page
     max_completed = current_user.prefs.show_number_completed</diff>
      <filename>app/controllers/todos_controller.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>33eba10e88e8c65f23ef0e1292ed66210c73c30c</id>
    </parent>
  </parents>
  <author>
    <name>Reinier Balt</name>
    <email>lrbalt@gmail.com</email>
  </author>
  <url>http://github.com/bsag/tracks/commit/f40c35276f82fc8d361df31f89c9718db7bb2ad3</url>
  <id>f40c35276f82fc8d361df31f89c9718db7bb2ad3</id>
  <committed-date>2008-11-14T02:40:10-08:00</committed-date>
  <authored-date>2008-11-14T02:40:10-08:00</authored-date>
  <message>fix the sort order for tag view. It is now the same as on the home page</message>
  <tree>5fa31428944d9729c28beb82f7c7c6870c9e38e1</tree>
  <committer>
    <name>Reinier Balt</name>
    <email>lrbalt@gmail.com</email>
  </committer>
</commit>
