Trying to sort by date with lambda I can't understand which lambda my error message is referring to. The message is
<lambda>() takes exactly 1 argument (2 given)
The 2 instructions are
a = A.proximity_fetch(A.all().filter("modified >", timeline).filter("published =", True).filter("modified <=", bookmark ).order("-modified") ,db.GeoPt(lat, lon),max_results=40, max_distance=m)
a = sorted(a, lambda x: x.modified, reverse=True)
Thanks for the help!