Index: rietveld.py |
diff --git a/rietveld.py b/rietveld.py |
index a03fe77e3e8d216ca0e8590919d62d800ffa423a..d4ac39bab08060ea3c6414d3b9ad32b986d266f0 100644 |
--- a/rietveld.py |
+++ b/rietveld.py |
@@ -70,9 +70,10 @@ class Rietveld(object): |
def get_pending_issues(self): |
"""Returns an array of dict of all the pending issues on the server.""" |
- return json.loads(self.get( |
- '/search?format=json&commit=2&closed=3&keys_only=True&limit=1000') |
- )['results'] |
+ # TODO: Convert this to use Rietveld::search(), defined below. |
+ return json.loads( |
+ self.get('/search?format=json&commit=2&closed=3&' |
+ 'keys_only=True&limit=1000&order=__key__'))['results'] |
def close_issue(self, issue): |
"""Closes the Rietveld issue for this changelist.""" |