Sort emails by log filename