As others have pointed out, order in a hash is arbitary in normal usage.
As it appears you are putting this data into a database why does it matter about the order unless the is some "hidden" sequence that makes it important. The queries used to retrieve that data can sort it for you.