Sort Task index
This commit is contained in:
parent
9ae7c05a89
commit
4cae94eff9
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue