sort_metadata_df function

Sort metadata data frame