mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 01:44:34 +08:00
Merge pull request #2450 from aignatov-bio/ai-sci-4421-sorting-task-without-due-date
Add alphabetical order for tasks without due date [SCI-4421]
This commit is contained in:
commit
6f395b8e36
1 changed files with 2 additions and 2 deletions
|
@ -29,9 +29,9 @@ module Dashboard
|
|||
|
||||
case task_filters[:sort]
|
||||
when 'date_desc'
|
||||
tasks = tasks.order('my_modules.due_date': :desc)
|
||||
tasks = tasks.order('my_modules.due_date': :desc).order('my_modules.name': :asc)
|
||||
when 'date_asc'
|
||||
tasks = tasks.order('my_modules.due_date': :asc)
|
||||
tasks = tasks.order('my_modules.due_date': :asc).order('my_modules.name': :asc)
|
||||
when 'atoz'
|
||||
tasks = tasks.order('my_modules.name': :asc)
|
||||
when 'ztoa'
|
||||
|
|
Loading…
Reference in a new issue