fix hash ordering in ruby 1.8.7