Fixed rating order
This commit is contained in:
parent
c61ec525cb
commit
fef6c5e1a1
@ -27,7 +27,7 @@ func Get(ctx *aero.Context) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sort.Slice(animeList.Items, func(i, j int) bool {
|
sort.Slice(animeList.Items, func(i, j int) bool {
|
||||||
return animeList.Items[i].FinalRating() < animeList.Items[j].FinalRating()
|
return animeList.Items[i].FinalRating() > animeList.Items[j].FinalRating()
|
||||||
})
|
})
|
||||||
|
|
||||||
return ctx.HTML(components.AnimeList(animeList, user))
|
return ctx.HTML(components.AnimeList(animeList, user))
|
||||||
|
Loading…
Reference in New Issue
Block a user