diff --git a/src/home/sorting/sort-by-oldest.ts b/src/home/sorting/sort-by-oldest.ts index 7a7d431..a04c442 100644 --- a/src/home/sorting/sort-by-oldest.ts +++ b/src/home/sorting/sort-by-oldest.ts @@ -1,9 +1,9 @@ import { GitHubAggregated } from "../github-types"; export function sortByOldest(tasks: GitHubAggregated[]) { - return tasks.sort((b,a) => { + return tasks.sort((b, a) => { const dateA = new Date(a.notification.updated_at); const dateB = new Date(b.notification.updated_at); return dateB.getTime() - dateA.getTime(); }); -} \ No newline at end of file +} diff --git a/src/home/sorting/sort-by.ts b/src/home/sorting/sort-by.ts index d100150..14f51c5 100644 --- a/src/home/sorting/sort-by.ts +++ b/src/home/sorting/sort-by.ts @@ -3,7 +3,7 @@ import { SORTING_OPTIONS } from "./generate-sorting-buttons"; import { sortByPriority } from "./sort-by-priority"; import { sortByOldest } from "./sort-by-oldest"; -export function sortBy(tasks: GitHubAggregated[], sortBy: (typeof SORTING_OPTIONS)[number]){ +export function sortBy(tasks: GitHubAggregated[], sortBy: (typeof SORTING_OPTIONS)[number]) { switch (sortBy) { case "priority": return sortByPriority(tasks); diff --git a/src/home/sorting/sort-controller.ts b/src/home/sorting/sort-controller.ts index 0ab82b2..6b6da22 100644 --- a/src/home/sorting/sort-controller.ts +++ b/src/home/sorting/sort-controller.ts @@ -10,7 +10,7 @@ export function sortIssuesController(tasks: GitHubAggregated[], sorting?: Sortin if (sorting) { sortedNotifications = sortBy(sortedNotifications, sorting); } else { - const sortedByFreshness = sortByOldest(sortedNotifications); // oldest first + const sortedByFreshness = sortByOldest(sortedNotifications); // oldest first const sortedByPriority = sortByPriority(sortedByFreshness); // highest priority first sortedNotifications = sortedByPriority; }