commit | 0f3e556044ecbd8a0805d098e52a743a1d0e3566 | [log] [tgz] |
---|---|---|
author | Tim Cooper <tim.cooper@layeh.com> | Fri Jun 22 17:51:20 2018 -0300 |
committer | Russ Cox <rsc@golang.org> | Sat Jun 23 18:51:10 2018 +0000 |
tree | d65bf5ed6d1df304cf1c90224155ac61e67bf0a8 | |
parent | 48cc2d845c20abc7a0c133d2b4c8e05eef6f4ebe [diff] |
cmd/go/internal/modcmd: fix sorting Introduced in CL 120197 Change-Id: Ib776ea08efb16c7521430f837f560158d6fed897 Reviewed-on: https://go-review.googlesource.com/120597 Reviewed-by: Russ Cox <rsc@golang.org>
diff --git a/vendor/cmd/go/internal/modcmd/mod.go b/vendor/cmd/go/internal/modcmd/mod.go index b84aacf..a24a105 100644 --- a/vendor/cmd/go/internal/modcmd/mod.go +++ b/vendor/cmd/go/internal/modcmd/mod.go
@@ -495,7 +495,7 @@ }) sort.Slice(out[deps:], func(i, j int) bool { - return out[deps+j][0] < out[deps+j][0] + return out[deps+i][0] < out[deps+j][0] }) w := bufio.NewWriter(os.Stdout)