I need some help with sorting in python. I got a data object, in this objects are lists and I like to sort the data for a specific list item. Currently I print it out like this:
for item in data:
for proj in item:
print proj.get('id')
So I want this data already sorted by the 'id' item.
This is how the data object looks like, if I print it:
[[{u'archived': False, u'name': u'someone', u'num_files': 0, u'managed_by': {u'username': u'somebody', u'role': u'somerole', u'email_address': u'me@somewhere', u'id': u'307', u'name': u'firstname lastname'}, u'updated_on': u'2015-06-18 17:55:39', u'id': 23},
{u'archived': False, u'name': u'someoneelse', u'num_files': 0, u'managed_by': {u'username': u'somebody else', u'role': u'somerole', u'email_address': u'you@somewhere', u'id': u'341', u'name': u'Firstname Lastname'}, u'updated_on': u'2015-06-09 17:38:52', u'id': 48}]]
Just two lists from the whole, but I like to sort for the last id, in this example 23 and 48