Added a sort for trending posts

This commit is contained in:
tdgmdev 2023-03-08 18:56:28 -05:00
parent 2bb1c9725d
commit e2a3f560c1
3 changed files with 15 additions and 8 deletions

View file

@ -7,8 +7,9 @@
</script>
<p>
<Button clickFunc={() => { window.location.search = setLocation(window.location,'sort','rating')}}>Sort by rating</Button>
<Button clickFunc={() => { window.location.search = setLocation(window.location,'sort','time')}}>Sort by time</Button>
<Button clickFunc={() => { window.location.search = setLocation(window.location,'sort','hot')}}>Hot</Button>
<Button clickFunc={() => { window.location.search = setLocation(window.location,'sort','rating')}}>Top</Button>
<Button clickFunc={() => { window.location.search = setLocation(window.location,'sort','time')}}>Recent</Button>
</p>
{#if data && data.postJson && data.postJson.data}