improved sorting on several files and explicitly print triggers