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): |