print sorted stats