sort generated output