]> Cypherpunks repositories - gostls13.git/commitdiff
godoc: sort list of "other packages"
authorRobert Griesemer <gri@golang.org>
Mon, 30 Jan 2012 22:31:51 +0000 (14:31 -0800)
committerRobert Griesemer <gri@golang.org>
Mon, 30 Jan 2012 22:31:51 +0000 (14:31 -0800)
Fixes #2786.

R=r, bradfitz
CC=golang-dev
https://golang.org/cl/5581050

src/cmd/godoc/godoc.go

index 916ef6808d6bae157e56b92cca0b73f9735c319d..e3ac3d2bd10b5f1c9d42a1694e4411f3f4dd1e88 100644 (file)
@@ -1065,6 +1065,7 @@ func (h *httpHandler) getPageInfo(abspath, relpath, pkgname string, mode PageInf
                        }
                }
                plist = plist[0:i]
+               sort.Strings(plist)
        }
 
        // get examples from *_test.go files