mirror of
https://github.com/BlossomiShymae/clean-cuts.git
synced 2025-12-06 18:20:47 +01:00
Add sorting
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user