mirror of
https://github.com/golang/go
synced 2024-11-22 16:14:56 -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:
parent
61a8eb07f8
commit
b6522c43d5
@ -97,7 +97,7 @@ type Pagination struct {
|
|||||||
func goCommits(c appengine.Context, page int) ([]*Commit, error) {
|
func goCommits(c appengine.Context, page int) ([]*Commit, error) {
|
||||||
q := datastore.NewQuery("Commit").
|
q := datastore.NewQuery("Commit").
|
||||||
Ancestor((&Package{}).Key(c)).
|
Ancestor((&Package{}).Key(c)).
|
||||||
Order("-Time").
|
Order("-Num").
|
||||||
Limit(commitsPerPage).
|
Limit(commitsPerPage).
|
||||||
Offset(page * commitsPerPage)
|
Offset(page * commitsPerPage)
|
||||||
var commits []*Commit
|
var commits []*Commit
|
||||||
|
Loading…
Reference in New Issue
Block a user