Commit b6522c43 authored by Andrew Gerrand's avatar Andrew Gerrand

dashboard: sort user interface by internal counter, not date

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6114053
parent 61a8eb07
...@@ -97,7 +97,7 @@ type Pagination struct { ...@@ -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
......
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