Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Unified Diff: chrome/common/extensions/docs/server2/api_list_data_source.py

Issue 10838002: Extensions Docs Server: Sort API list (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/server2/api_list_data_source.py
diff --git a/chrome/common/extensions/docs/server2/api_list_data_source.py b/chrome/common/extensions/docs/server2/api_list_data_source.py
index 63d8aa3a3c819cf43c6977522b3e7c035611e85d..77e9e05d8d5c46476b1c44e3e955e4470d6ac1b2 100644
--- a/chrome/common/extensions/docs/server2/api_list_data_source.py
+++ b/chrome/common/extensions/docs/server2/api_list_data_source.py
@@ -31,8 +31,8 @@ class APIListDataSource(object):
chrome_apis[-1]['last'] = True
experimental_apis[-1]['last'] = True
return {
- 'chrome': sorted(chrome_apis),
- 'experimental': sorted(experimental_apis)
+ 'chrome': sorted(chrome_apis, key=lambda x: x['name']),
+ 'experimental': sorted(experimental_apis, key=lambda x: x['name'])
not at google - send to devlin 2012/07/30 20:22:00 There's an "attrgetter" thing somewhere that does
cduvall 2012/07/30 20:26:29 How about this?
}
def __getitem__(self, key):
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698