Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: Re: Sorting an array of strings by number

by Albannach (Prior)
on Oct 01, 2001 at 17:27 UTC ( #115856=note: print w/replies, xml ) Need Help??

in reply to Re: Sorting an array of strings by number
in thread Sorting an array of strings by number

Note that in your option 3 the unique keys of the hash will be likely to clobber some data as the anonymonk specified that the first value is price in his problem. Hashes are great for many reasons but this example is easily and simply addressed by a simple numerical sort so unless there is reason to need to search the data by price, and a certainty of unique pricing, I'll go with one of your first two options.

I'd like to be able to assign to an luser

  • Comment on Re: Re: Sorting an array of strings by number

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://115856]
[Corion]: Oh yay. Why do I test a migration with transaction code "T" when the real trades from the migration will come with P9N (which is excluded from the processing)?

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (13)
As of 2017-09-26 15:07 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (296 votes). Check out past polls.