Skip to content

Commit

Permalink
use 'order' as the default sorting order
Browse files Browse the repository at this point in the history
If the user does not provide a sorting order, use the default order as defined by Todoist

This at least means there is a stable sorting order & gives a sembalance of ordering.
  • Loading branch information
jamiebrynes7 committed Jan 31, 2024
1 parent f7af1ab commit e458cbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/TodoistQuery.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@
{#if filteredTasks.length === 0}
<NoTaskDisplay />
{:else if query.group}
<GroupedTasks tasks={filteredTasks} sorting={query.sorting ?? []} />
<GroupedTasks tasks={filteredTasks} sorting={query.sorting ?? ["order"]} />
{:else}
<TaskListRoot tasks={filteredTasks} sorting={query.sorting ?? []} />
<TaskListRoot tasks={filteredTasks} sorting={query.sorting ?? ["order"]} />
{/if}
{/if}

0 comments on commit e458cbb

Please sign in to comment.