chore: support proper badge collection sorting
This commit is contained in:
parent
e45261bb31
commit
05cd107af6
3 changed files with 4 additions and 4 deletions
|
@ -20,7 +20,7 @@ const fetchAllBadges = async () => {
|
|||
const transformedData = data.map(badge => ({
|
||||
...badge,
|
||||
image: badge['image']['filename_disk'],
|
||||
}))
|
||||
})).sort((a, b) => a.sort - b.sort)
|
||||
|
||||
return transformedData
|
||||
}
|
||||
|
|
Reference in a new issue