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:
parent
86a07b2479
commit
9a844b5ad3
2 changed files with 3 additions and 3 deletions
|
@ -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],
|
||||||
]
|
]
|
||||||
|
|
|
@ -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,
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue