improved dumper helper to sort hash keys