in reply to sort while push in hash

No, push puts the element at the end of the array.
Boris