Permalink
Browse files

Really fix sorting

  • Loading branch information...
1 parent 4897059 commit 6b381bfe737d4f89fd99e6ae26006bb3cd511a5e @kneath committed May 3, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/burndown/app.rb
View
@@ -14,7 +14,7 @@ class App < Sinatra::Default
get "/project/:id" do
@project = Project.get(params[:id])
- @milestones = @project.milestones.all(:order => [:due_on.asc])
+ @milestones = @project.milestones.all(:order => [:due_on.asc]).sort { |x, y| x.due_on.nil? ? 1 : x.due_on <=> y.due_on }
show :project
end

0 comments on commit 6b381bf

Please sign in to comment.