How to get contacts in order of their upcoming birthdays?

后端 未结 5 1249
误落风尘
误落风尘 2020-12-15 12:45

I have code to read contact details and to read birthdays. But how do I get a list of contacts in order of their upcoming birthday?

For a single contact identified b

5条回答
  •  醉酒成梦
    2020-12-15 12:50

    I think I'd get the list sorted by birthday, then copy that list into a second list, using today's date as the "zero date." Seems like it would be cleaner to do it that way than to try to hammer out an appropriate query, although it might be a touch slower.

提交回复
热议问题