sort output from normalization