[cg_level] gathering patches before sorting them along SFC moved to a separate routine