Add some sort when iterating hash, for more consistent result