Sort tasks by name in the overview

This commit is contained in:
Paul van Tilburg 2011-11-29 12:12:53 +01:00
parent 218b3e45a4
commit 4b69bb02ec
1 changed files with 1 additions and 1 deletions

View File

@ -463,7 +463,7 @@ module StopTime::Controllers
def get
@tasks = {}
Customer.all.each do |customer|
@tasks[customer] = customer.unbilled_tasks
@tasks[customer] = customer.unbilled_tasks.sort_by { |t| t.name }
end
render :overview
end