sort tag buttons by popularity

This commit is contained in:
Joshua Seigler 2022-10-11 13:08:09 -04:00
parent 1f25d68959
commit fa98694797
No known key found for this signature in database

View file

@ -28,6 +28,7 @@ const topics = computed(() => {
return [...map.entries()] return [...map.entries()]
.map(([topic, count]) => ({ topic, count })) .map(([topic, count]) => ({ topic, count }))
.filter(({ count }) => count > 1) .filter(({ count }) => count > 1)
.sort((a, b) => b.count - a.count)
}) })
const isLoading = signal(true) const isLoading = signal(true)
const filter = signal<(r: GithubRepo) => boolean>(() => true) const filter = signal<(r: GithubRepo) => boolean>(() => true)