Skip to content

Commit cc97ee7

Browse files
committed
Always sort tags alphabetically
1 parent 21a167d commit cc97ee7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

client/src/components/DisplayTags.vue

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
<template>
22
<div class="badge-container">
3-
<div v-for="tag in tags" :key="tag.id" class="badge me-1" @click="searchWord(tag.name)">
3+
<div
4+
v-for="tag in [...tags].sort((a, b) => a.name.localeCompare(b.name))"
5+
:key="tag.id"
6+
class="badge me-1"
7+
@click="searchWord(tag.name)"
8+
>
49
{{ tag.name }}
510
</div>
611
</div>

0 commit comments

Comments
 (0)