ui: Sort tags without considering case

This commit is contained in:
nemunaire 2021-09-02 17:11:34 +02:00
parent 2b58e707ca
commit f5f450f456

View File

@ -27,7 +27,7 @@
bind:value={filter}
>
<div>
{#each Object.keys($tags).sort() as itag, index}
{#each Object.keys($tags).sort(function (a, b) { return a.toLowerCase().localeCompare(b.toLowerCase()); }) as itag, index}
{#if filter === "" || itag.toLowerCase().indexOf(filter.toLowerCase()) >= 0}
<DropdownItem href="tags/{itag}">
#{itag}