Permalink
Browse files

Sorting issues by number before migrating

  • Loading branch information...
1 parent 2db76fa commit 06b1f1fa2d0ff7f6a4bd016aacf0a8161800d8f5 @jeffroche committed May 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 sifter2github.py
View
@@ -13,7 +13,7 @@ def __init__(self, host, token, project):
_projects = _account.projects()
proj_names = [p.name for p in _projects]
_project = _projects[proj_names.index(project)]
- self.issues = _project.issues()
+ self.issues = sorted(_project.issues(), key=lambda issue: issue.number)
self.comments = [sorted(_issue.comments(), key=lambda comment: comment.created_at) for _issue in self.issues]
self.milestones = _project.milestones()
self.users = _project.people()

0 comments on commit 06b1f1f

Please sign in to comment.