Order by month-day of date field: answer

Order by month-day of date field: answer

I did some fiddling about with formulas to be able to order a list on the month and day. So for a list of birthdays you can order the list - regardless of the birthyear - by bithday.

This script returns: [mm]-[dd]
So it makes both a two digit number! Otherwise ordering goes wrong like: 1, 10, 11, 12, 2, 3, etc.

((((Date_field.getMonth()) / 100).round(2) + "").getSuffix(".")) + "-" + ((((Date_field.getDay()) / 100).round(2) + "").getSuffix("."))