Sort Task index

This commit is contained in:
Patrick Gansterer 2016-02-24 20:58:32 +01:00 committed by wvengen
parent 9ae7c05a89
commit 4cae94eff9

View file

@ -3,7 +3,7 @@ class TasksController < ApplicationController
#auto_complete_for :user, :nick
def index
@non_group_tasks = Task.non_group.includes(assignments: :user)
@non_group_tasks = Task.non_group.order('due_date', 'name').includes(assignments: :user)
@groups = Workgroup.includes(open_tasks: {assignments: :user})
end