separate source file for SortType / md_date