diff --git a/postmap/postmap.go b/postmap/postmap.go index 93f24d2..a7e0106 100644 --- a/postmap/postmap.go +++ b/postmap/postmap.go @@ -166,7 +166,9 @@ func (pl *postList) fetchLocked(filename string) error { if err != nil { return err } - defer slices.SortFunc(pl.posts, postLess) + defer func() { + slices.SortFunc(pl.posts, postLess) + }() for i, post := range pl.posts { if post.Slug == p.Slug { pl.posts[i] = p