DEV Community

loading...

Discussion on: How to Sort a List of Dictionaries in Python

Collapse
dmitrypolo profile image
dmitrypolo

itemgetter is faster than using lambda specifically because all the operations are performed on the C side. I should have clarified when I made my response. Thanks for the shoutout!

Thread Thread
renegadecoder94 profile image
Jeremy Grifski Author • Edited

Thanks for the clarification! I wasn't aware of that. The article has been updated to include a note about performance.