Reverse the sort
e8138ff4a20dbaf350597101d5c15f921db3d054
1d699c925650b39c9580219513cdf17ef13dde88
@@ -2,4 +2,4 @@ module giit.cyberia.club/~j3s/jrss go 1.13 -require github.com/mmcdole/gofeed v1.0.0 // indirect +require github.com/mmcdole/gofeed v1.0.0
@@ -2,4 +2,4 @@ module giit.cyberia.club/~j3s/jrss
@@ -31,7 +31,7 @@ i.Description = p.Title beegFeed.Items = append(beegFeed.Items, i) } } - sort.Sort(beegFeed) + sort.Sort(sort.Reverse(beegFeed)) for _, i := range beegFeed.Items { fmt.Fprintf(w, "<p>%s: <a href=\"%s\">%s</a></p>", i.Description, i.Link, i.Title) }
@@ -31,7 +31,7 @@ i.Description = p.Title