Re: multidimensional insertion order
- From: "it_says_BALLS_on_your forehead" <simon.chao@xxxxxxx>
- Date: 28 Jul 2005 09:34:30 -0700
a "hacky" way to do it would be to initialize a counter to 1, and
prepend the counter and an underscore to your key.
then you could sort key on the hash. if the actual key itself is
important (i.e. you need this to be retained) you can take it out
afterwards, using regexs, substr, etc...depending on if you have a
fixed width counter (e.g. 0001, 0002), or not. regex would be s/\d+_//;
hope that helps!
.
- Follow-Ups:
- Re: multidimensional insertion order
- From: Spin
- Re: multidimensional insertion order
- References:
- multidimensional insertion order
- From: Spin
- multidimensional insertion order
- Prev by Date: Re: length of an array in a struct in an array of structs in a struct in an array of structs
- Next by Date: Re: length of an array in a struct in an array of structs in a struct in an array of structs
- Previous by thread: Re: multidimensional insertion order
- Next by thread: Re: multidimensional insertion order
- Index(es):