我想對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