Added sorting to schedule
This commit is contained in:
parent
2f5fa949f4
commit
b90603be89
@ -1,6 +1,7 @@
|
||||
package dashboard
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"time"
|
||||
|
||||
"github.com/aerogo/aero"
|
||||
@ -84,6 +85,10 @@ func dashboard(ctx *aero.Context) string {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
sort.Slice(upcomingEpisodes, func(i, j int) bool {
|
||||
return upcomingEpisodes[i].Episode.AiringDate.Start < upcomingEpisodes[j].Episode.AiringDate.Start
|
||||
})
|
||||
}, func() {
|
||||
var err error
|
||||
soundTracks, err = arn.AllSoundTracks()
|
||||
|
Loading…
Reference in New Issue
Block a user