Change generic type of SortByDate to Metadata