Commit cc9a5c3b authored by David Symonds's avatar David Symonds

misc/dashboard/codereview: preserve CL ordering.

R=r
CC=golang-dev
https://golang.org/cl/6136056
parent 86a91539
......@@ -78,7 +78,8 @@ func handleFront(w http.ResponseWriter, r *http.Request) {
for i := len(tbl.CLs) - 1; i >= 0; i-- {
cl := tbl.CLs[i]
if cl.Author == currentPerson || cl.Reviewer == currentPerson {
tbl.CLs[i] = tbl.CLs[len(tbl.CLs)-1]
// Preserve order.
copy(tbl.CLs[i:], tbl.CLs[i+1:])
tbl.CLs = tbl.CLs[:len(tbl.CLs)-1]
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment