Fixed rating order

This commit is contained in:
Eduard Urbach 2017-06-25 15:13:53 +02:00
parent fef6c5e1a1
commit af85fd1033

View File

@ -24,7 +24,7 @@ func Get(ctx *aero.Context) string {
}
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)))