sort hash keys, so that the results are consistant