diff --git a/models/lead/src/index.ts b/models/lead/src/index.ts index 8539eb3915..dbf0c8f44d 100644 --- a/models/lead/src/index.ts +++ b/models/lead/src/index.ts @@ -262,7 +262,7 @@ export function createModel (builder: Builder): void { orderBy: [ ['state', SortingOrder.Ascending], ['modifiedOn', SortingOrder.Descending], - ['dueDate', SortingOrder.Descending], + ['dueDate', SortingOrder.Ascending], ['rank', SortingOrder.Ascending] ], other: [ diff --git a/models/recruit/src/index.ts b/models/recruit/src/index.ts index 8dd9898e99..20394405c4 100644 --- a/models/recruit/src/index.ts +++ b/models/recruit/src/index.ts @@ -625,7 +625,7 @@ export function createModel (builder: Builder): void { orderBy: [ ['state', SortingOrder.Ascending], ['modifiedOn', SortingOrder.Descending], - ['dueDate', SortingOrder.Descending], + ['dueDate', SortingOrder.Ascending], ['rank', SortingOrder.Ascending] ], other: [ diff --git a/models/tracker/src/index.ts b/models/tracker/src/index.ts index 552ee21349..116a69cb8a 100644 --- a/models/tracker/src/index.ts +++ b/models/tracker/src/index.ts @@ -490,7 +490,7 @@ export function createModel (builder: Builder): void { ['status', SortingOrder.Ascending], ['priority', SortingOrder.Ascending], ['modifiedOn', SortingOrder.Descending], - ['dueDate', SortingOrder.Descending], + ['dueDate', SortingOrder.Ascending], ['rank', SortingOrder.Ascending] ], other: [ @@ -607,7 +607,7 @@ export function createModel (builder: Builder): void { ['status', SortingOrder.Ascending], ['priority', SortingOrder.Ascending], ['modifiedOn', SortingOrder.Descending], - ['dueDate', SortingOrder.Descending] + ['dueDate', SortingOrder.Ascending] ], groupDepth: 1, other: [] @@ -686,7 +686,7 @@ export function createModel (builder: Builder): void { orderBy: [ ['priority', SortingOrder.Ascending], ['modifiedOn', SortingOrder.Descending], - ['dueDate', SortingOrder.Descending], + ['dueDate', SortingOrder.Ascending], ['rank', SortingOrder.Ascending] ], other: [] diff --git a/plugins/tracker-resources/src/utils.ts b/plugins/tracker-resources/src/utils.ts index bcc20dc93b..af23f6cff5 100644 --- a/plugins/tracker-resources/src/utils.ts +++ b/plugins/tracker-resources/src/utils.ts @@ -102,7 +102,7 @@ export const issuesSortOrderMap: Record = { status: SortingOrder.Ascending, priority: SortingOrder.Ascending, modifiedOn: SortingOrder.Descending, - dueDate: SortingOrder.Descending, + dueDate: SortingOrder.Ascending, rank: SortingOrder.Ascending }