Sort posts for calendar in proper order.