]> Cypherpunks repositories - gostls13.git/commitdiff
dashboard: sort user interface by internal counter, not date
authorAndrew Gerrand <adg@golang.org>
Wed, 25 Apr 2012 20:01:08 +0000 (13:01 -0700)
committerAndrew Gerrand <adg@golang.org>
Wed, 25 Apr 2012 20:01:08 +0000 (13:01 -0700)
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6114053

misc/dashboard/app/build/ui.go

index 0337aa3063db9dde750081169ef212051e5a405b..1a7b67de9387863f26d4e4e6293425aff15aa71b 100644 (file)
@@ -97,7 +97,7 @@ type Pagination struct {
 func goCommits(c appengine.Context, page int) ([]*Commit, error) {
        q := datastore.NewQuery("Commit").
                Ancestor((&Package{}).Key(c)).
-               Order("-Time").
+               Order("-Num").
                Limit(commitsPerPage).
                Offset(page * commitsPerPage)
        var commits []*Commit