• Quentin Smith's avatar
    analysis/app: work around bug in SortBy · 5a6afbd2
    Quentin Smith authored
    SortBy seems to sometimes sort by the second column instead of the
    first. Until that bug is figured out, do the sorting one column at a
    time to control the ordering.
    
    Without this patch, try
    /trend?q=upload%3A20170216.3+name%3ARegexpMatchEasy0_1K&raw=1
    and
    /trend?q=trend%3Abuild.golang.org%2Fwindows-amd64-gce+name%3AGzip+commit-time%3E2016-11-08+commit-time%3C2016-11-30&raw=1
    
    The former seems to sort first by "commit" instead of "commit-time",
    but the latter sorts by "commit-time" first. Apply the patch and both
    are sorted by commit-time.
    
    Change-Id: I8ebd2720fa1147fc1d468a6bab515a224537a98e
    Reviewed-on: https://go-review.googlesource.com/37471
    Run-TryBot: Quentin Smith <quentin@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: default avatarRuss Cox <rsc@golang.org>
    5a6afbd2
trend.go 15 KB