more_lambda.py 115 B

12345
  1. points = [ { 'x' : 2, 'y' : 3 },
  2. { 'x' : 4, 'y' : 1 } ]
  3. points.sort(key=lambda i : i['y'])
  4. print points