fix hash order for ruby 1.8