我想对Facebook的Graph API返回的朋友列表进行排序。排序后的结果需要按名称的字母顺序排列。如何按字母顺序排列单个键上的字典数组?
[
{
"name": "Joe Smith",
"id": "6500000"
},
{
"name": "Andrew Smith",
"id": "82000"
},
{
"name": "Dora Smith",
"id": "97000000"
},
{
"name": "Jacki Smith",
"id": "107000"
}
]
其他注意事项:我使用的是Google App Engine,它使用Python 2.5.x.
谷歌App Engine的使用Python 2.5:http://code.google.com/appengine/docs/python/overview.html – 2011-02-19 13:35:41
对不起,我的错字。 – 2011-02-21 22:52:17