TSK-1248: fix dueDate sorting order (#3013)

Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
Vyacheslav Tumanov 2023-04-18 17:42:41 +05:00 committed by GitHub
parent 7fdb585dda
commit e5825c29dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View File

@ -262,7 +262,7 @@ export function createModel (builder: Builder): void {
orderBy: [ orderBy: [
['state', SortingOrder.Ascending], ['state', SortingOrder.Ascending],
['modifiedOn', SortingOrder.Descending], ['modifiedOn', SortingOrder.Descending],
['dueDate', SortingOrder.Descending], ['dueDate', SortingOrder.Ascending],
['rank', SortingOrder.Ascending] ['rank', SortingOrder.Ascending]
], ],
other: [ other: [

View File

@ -625,7 +625,7 @@ export function createModel (builder: Builder): void {
orderBy: [ orderBy: [
['state', SortingOrder.Ascending], ['state', SortingOrder.Ascending],
['modifiedOn', SortingOrder.Descending], ['modifiedOn', SortingOrder.Descending],
['dueDate', SortingOrder.Descending], ['dueDate', SortingOrder.Ascending],
['rank', SortingOrder.Ascending] ['rank', SortingOrder.Ascending]
], ],
other: [ other: [

View File

@ -490,7 +490,7 @@ export function createModel (builder: Builder): void {
['status', SortingOrder.Ascending], ['status', SortingOrder.Ascending],
['priority', SortingOrder.Ascending], ['priority', SortingOrder.Ascending],
['modifiedOn', SortingOrder.Descending], ['modifiedOn', SortingOrder.Descending],
['dueDate', SortingOrder.Descending], ['dueDate', SortingOrder.Ascending],
['rank', SortingOrder.Ascending] ['rank', SortingOrder.Ascending]
], ],
other: [ other: [
@ -607,7 +607,7 @@ export function createModel (builder: Builder): void {
['status', SortingOrder.Ascending], ['status', SortingOrder.Ascending],
['priority', SortingOrder.Ascending], ['priority', SortingOrder.Ascending],
['modifiedOn', SortingOrder.Descending], ['modifiedOn', SortingOrder.Descending],
['dueDate', SortingOrder.Descending] ['dueDate', SortingOrder.Ascending]
], ],
groupDepth: 1, groupDepth: 1,
other: [] other: []
@ -686,7 +686,7 @@ export function createModel (builder: Builder): void {
orderBy: [ orderBy: [
['priority', SortingOrder.Ascending], ['priority', SortingOrder.Ascending],
['modifiedOn', SortingOrder.Descending], ['modifiedOn', SortingOrder.Descending],
['dueDate', SortingOrder.Descending], ['dueDate', SortingOrder.Ascending],
['rank', SortingOrder.Ascending] ['rank', SortingOrder.Ascending]
], ],
other: [] other: []

View File

@ -102,7 +102,7 @@ export const issuesSortOrderMap: Record<IssuesOrderByKeys, SortingOrder> = {
status: SortingOrder.Ascending, status: SortingOrder.Ascending,
priority: SortingOrder.Ascending, priority: SortingOrder.Ascending,
modifiedOn: SortingOrder.Descending, modifiedOn: SortingOrder.Descending,
dueDate: SortingOrder.Descending, dueDate: SortingOrder.Ascending,
rank: SortingOrder.Ascending rank: SortingOrder.Ascending
} }