sort instance names before printing statistics