1
Fork 0
mirror of https://github.com/Steffo99/todocolors.git synced 2024-11-25 17:54:18 +00:00

Change default grouping and ordering

This commit is contained in:
Steffo 2023-08-06 18:48:39 +02:00
parent 86a07b2479
commit 9a844b5ad3
Signed by: steffo
GPG key ID: 2A24051445686895
2 changed files with 3 additions and 3 deletions

View file

@ -173,8 +173,8 @@ function TaskGroupTitleFromStatus({key}: {key: string}): ReactNode {
}
export const TASK_GROUPERS: [TaskCategorizer, TaskGroupComparer, TaskGroupTitleComponent][] = [
[categorizeTaskByIcon, compareGroupsByKey, TaskGroupTitleFromIcon],
[categorizeTaskByStatus, compareGroupsByAscendingStatus, TaskGroupTitleFromStatus],
[categorizeTaskByImportance, compareGroupsByDescendingImportance, TaskGroupTitleFromImportance],
[categorizeTaskByPriority, compareGroupsByDescendingPriority, TaskGroupTitleFromPriority],
[categorizeTaskByIcon, compareGroupsByKey, TaskGroupTitleFromIcon],
[categorizeTaskByStatus, compareGroupsByAscendingStatus, TaskGroupTitleFromStatus],
]

View file

@ -65,7 +65,7 @@ function compareImportancePriorityText(a: TaskWithId, b: TaskWithId) {
}
export const TASK_SORTERS: TaskSortingFunction[] = [
compareText,
comparePriorityImportanceText,
compareImportancePriorityText,
compareText,
];