Guest_imported
New member
- Jan 1, 1970
- 0
Hi All,
I have a Hash array with keys which are concatination of 3 values separated by a "~".
For ex: 1~AMS~D, 2~BDC~A, 10~ASTM~E etc..
I would like to see the output in the ascending order of the first value of the key.
i.e in the order 1~AMS~D,2~BDC~A,3~FTC~E,...10~ASTM~E
how ever when i sort the keys of the array, they display it in the following format:
10~ASTM~E, 1~AMS~D, 2~BDC~A......
How do i make it to start with 1,2,3...10,11,12.etc..?
Your help is greatly appreciated.
Thanks,
Madhu
I have a Hash array with keys which are concatination of 3 values separated by a "~".
For ex: 1~AMS~D, 2~BDC~A, 10~ASTM~E etc..
I would like to see the output in the ascending order of the first value of the key.
i.e in the order 1~AMS~D,2~BDC~A,3~FTC~E,...10~ASTM~E
how ever when i sort the keys of the array, they display it in the following format:
10~ASTM~E, 1~AMS~D, 2~BDC~A......
How do i make it to start with 1,2,3...10,11,12.etc..?
Your help is greatly appreciated.
Thanks,
Madhu