We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7779cb commit db1bb8aCopy full SHA for db1bb8a
frontend/src/routes/bibliography/+page.svelte
@@ -36,8 +36,8 @@
36
const va = fields[sortBy](a);
37
const vb = fields[sortBy](b);
38
39
- if (va < vb) return sortDir === 1 ? -1 : 1;
40
- if (va > vb) return sortDir === -1 ? 1 : -1;
+ if (va < vb) return -1 * sortDir;
+ if (va > vb) return sortDir;
41
42
return 0;
43
})
@@ -99,7 +99,7 @@
99
<Button.Root
100
class="order-toggle"
101
onclick={() => (sortDir = sortDir * -1)}
102
- aria-label="Toggle sort order from ascending to descending to no order"
+ aria-label="Toggle sort order from ascending to descending"
103
>
104
{#if sortDir === 1}
105
<LucideArrowUp aria-label="Ascending" />
0 commit comments