I'm trying to create a CB list with upcoming birthday, so I need the sorting to ignore the year of course.
I found some sql examples online, but I can't get them working:
This doesn't work, and it doesn't consider the current date:
month(ue.'cb_birthday') ASC, dayofmonth(ue.'cb_birthday') ASC
datepart(dy,dateadd(d,- DATEPART(dy, getdate()),ue.'cb_birthday' ))
It could be way out of scope for the product, but it would be nice to have the list show somewhere on the page