kill spurious whitespace
sort results before comparaison

This is needed because of perl 5.18 hash randomisation.