communityslice: sort by size

This commit is contained in:
VDawg 2023-11-15 20:48:03 +01:00
parent a85a6f2976
commit 685ab939e2

View file

@ -184,7 +184,7 @@
size: 80, size: 80,
class: 'outline-amber-500 bg-black ' class: 'outline-amber-500 bg-black '
} }
] ].sort(({ size: a }, { size: b }) => b - a)
setContext(contextId, { setContext(contextId, {
biggestSize: profiles.reduce( biggestSize: profiles.reduce(