MDL-57658 calendar: Set sort order for fetched DB records