Skip to content

Commit

Permalink
sort issues desc
Browse files Browse the repository at this point in the history
  • Loading branch information
andybons committed Dec 3, 2019
1 parent e29ac2c commit ce52bf4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions cmd/data/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"io"
"log"
"os"
"sort"

"golang.org/x/build/maintner"
"golang.org/x/build/maintner/godata"
Expand Down Expand Up @@ -37,6 +38,9 @@ func main() {
return nil
})
fmt.Fprintln(os.Stderr, len(issues), "issues")
sort.Slice(issues, func(i, j int) bool {
return issues[j].Number < issues[i].Number
})
var buf bytes.Buffer
buf.WriteString("export const ISSUE_DATA = ")
if err := json.NewEncoder(&buf).Encode(issues); err != nil {
Expand Down
Loading

0 comments on commit ce52bf4

Please sign in to comment.