1
0
mirror of https://github.com/golang/go synced 2024-11-22 05:54:40 -07:00

dashboard: sort user interface by internal counter, not date

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6114053
This commit is contained in:
Andrew Gerrand 2012-04-25 13:01:08 -07:00
parent 61a8eb07f8
commit b6522c43d5

View 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