human
Sorting datetime objects while ignoring the year?
assistant
Here is some code to sort datetime objects `birthdays` by `month` and `day`

birthdays.sort(key=lambda d: (d.month, d.day))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.