I'm trying to sort a list of entries based on the id of the entries.
I tried this code, but it didn't work:
entries.sort(cmp=None, key=Entry.id, reverse=False)
The objects in the list are entries which have an id.
This is the error I get:
TypeError: 'InstrumentedAttribute' object is not callable
Any ideas?