1
Fork 0
mirror of https://github.com/Steffo99/todocolors.git synced 2024-11-22 16:24:19 +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][] = [ export const TASK_GROUPERS: [TaskCategorizer, TaskGroupComparer, TaskGroupTitleComponent][] = [
[categorizeTaskByIcon, compareGroupsByKey, TaskGroupTitleFromIcon],
[categorizeTaskByStatus, compareGroupsByAscendingStatus, TaskGroupTitleFromStatus],
[categorizeTaskByImportance, compareGroupsByDescendingImportance, TaskGroupTitleFromImportance], [categorizeTaskByImportance, compareGroupsByDescendingImportance, TaskGroupTitleFromImportance],
[categorizeTaskByPriority, compareGroupsByDescendingPriority, TaskGroupTitleFromPriority], [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[] = [ export const TASK_SORTERS: TaskSortingFunction[] = [
compareText,
comparePriorityImportanceText, comparePriorityImportanceText,
compareImportancePriorityText, compareImportancePriorityText,
compareText,
]; ];