19 lines
254 B
Go
Raw Normal View History

2018-04-16 13:48:54 +00:00
package amvs
import (
"sort"
"github.com/aerogo/aero"
)
// Latest AMVs.
func Latest(ctx *aero.Context) string {
amvs := fetchAll()
sort.Slice(amvs, func(i, j int) bool {
return amvs[i].Created > amvs[j].Created
})
return render(ctx, amvs)
}