From a41990f7ab4228957e70cbee25ffa41d9cbd7558 Mon Sep 17 00:00:00 2001 From: Vyacheslav Tumanov Date: Thu, 4 May 2023 16:58:26 +0500 Subject: [PATCH] TSK-1257: add sorting by create time (#3138) Signed-off-by: Vyacheslav Tumanov --- models/tracker/src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/models/tracker/src/index.ts b/models/tracker/src/index.ts index 97e178f099..66882d64d0 100644 --- a/models/tracker/src/index.ts +++ b/models/tracker/src/index.ts @@ -496,6 +496,7 @@ export function createModel (builder: Builder): void { ['status', SortingOrder.Ascending], ['priority', SortingOrder.Ascending], ['modifiedOn', SortingOrder.Descending], + ['createOn', SortingOrder.Descending], ['dueDate', SortingOrder.Ascending], ['rank', SortingOrder.Ascending] ], @@ -623,6 +624,7 @@ export function createModel (builder: Builder): void { ['status', SortingOrder.Ascending], ['priority', SortingOrder.Ascending], ['modifiedOn', SortingOrder.Descending], + ['createOn', SortingOrder.Descending], ['dueDate', SortingOrder.Ascending] ], groupDepth: 1,