With the itk::GDCMSeriesFileNames, we automatically have the dicom sorted according series, so this option is not necessary anymore.
So I removed the option in the .ggo file and I remove the if conditions.
I add .c_str() to series_UID to remove trailling white spaces