add sorting of tasks in the UI to counteract weirdness with links.
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-04-04 10:02:35 +02:00
parent 642a0d8eff
commit e0822cce24
+5 -1
View File
@@ -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))
</script>
{#if tasks.length > 0}
<h3>{header}</h3>
{#each tasks as task (task.id)}
{#each sortedTasks as task (task.id)}
<TaskEntry
showAllOptions={showAllOptions}
task={task} project={project}