Sort front page entries correctly

master
2577 3 years ago
parent 459e9b9b90
commit cdebda03ed
  1. 2
      feed.go

@ -159,7 +159,7 @@ type Item struct {
func (f feed) items() []feedItem {
var items []feedItem
err := f.db.Find(&items, bolthold.Where("Date").Gt(time.Unix(0, 0)).Reverse())
err := f.db.Find(&items, bolthold.Where("Date").Gt(time.Unix(0, 0)).SortBy("Date").Reverse())
if err != nil {
log.Printf("Error reading feed db bucket: %v", err)
}

Loading…
Cancel
Save