Added method SortMetaData():