How do I sort this list in Python, if my date is in a String?

Posted by alex on Stack Overflow See other posts from Stack Overflow or by alex
Published on 2010-04-07T01:36:28Z Indexed on 2010/04/07 1:43 UTC
Read the original article Hit count: 394

Filed under:
|
|
[{'date': '2010-04-01', 'people': 1047, 'hits': 4522}, {'date': '2010-04-03', 'people': 617, 'hits': 2582}, {'date': '2010-04-02', 'people': 736, 'hits': 3277}]

Suppose I have this list. How do I sort by "date", which is an item in the dictionary. But, "date" is a string...

© Stack Overflow or respective owner

Related posts about python

Related posts about list