diff --git a/svelte-ui/src/components/TaskList.svelte b/svelte-ui/src/components/TaskList.svelte index 60a2391..2c0fec2 100644 --- a/svelte-ui/src/components/TaskList.svelte +++ b/svelte-ui/src/components/TaskList.svelte @@ -8,11 +8,15 @@ export let tasks: TaskResult[]; export let showAllOptions: boolean; export let header: string; + + let sortedTasks: TaskResult[] = []; + + $: sortedTasks = tasks.sort((a,b) => a.createdTime.localeCompare(b.createdTime)) {#if tasks.length > 0}

{header}

- {#each tasks as task (task.id)} + {#each sortedTasks as task (task.id)}