Add sorting

This commit is contained in:
Blossomi Shymae
2024-05-02 09:46:48 -05:00
parent 4cec226e1d
commit 2db643b49f
4 changed files with 8 additions and 5 deletions

View File

@@ -30,6 +30,7 @@ import usePagination from '../../composables/usePagination';
const { client } = useClient();;
const emotes = await client.summonerEmotes.listAsync({locale: "default", version: "latest"});
const emotes = (await client.summonerEmotes.listAsync({locale: "default", version: "latest"}))
.sort((a, b) => a.id - b.id);
const { count, pages, index, prev, next, first, last } = usePagination(emotes, 24);
</script>