Check spec_metadata for GNPS .mgf format before exporting the MS/MS library
      Source: R/table_checks.R
      check_specdt_mgf_gnps.RdInternal function
Details
This function aims to create a unique KEY to sort and iterate the compound
table in order to match the keys created when MS/MS was imported in
sort_compound_table().
The three main steps are:
Create a unique row key: Compound name + Polarity + CE
Check if there are any duplicated values
Sort the compound table by Name and CE value