Implement sortByBirthday to pass tests.