Add getSortedWeekdays function