Fixed rating order
This commit is contained in:
parent
fef6c5e1a1
commit
af85fd1033
@ -24,7 +24,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 utils.AllowEmbed(ctx, ctx.HTML(components.AnimeList(animeList, user)))
|
return utils.AllowEmbed(ctx, ctx.HTML(components.AnimeList(animeList, user)))
|
||||||
|
Loading…
Reference in New Issue
Block a user