small pixel drawing of a pufferfish jrss

Reverse the sort
Jesse Olson j3s@c3f.net
Tue, 14 Jul 2020 13:56:25 +0000
commit

e8138ff4a20dbaf350597101d5c15f921db3d054

parent

1d699c925650b39c9580219513cdf17ef13dde88

2 files changed, 2 insertions(+), 2 deletions(-)

jump to
M go.modgo.mod

@@ -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
M main.gomain.go

@@ -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) }