Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Re: Re: Re: Sorting a subset

by Not_a_Number (Prior)
on Dec 12, 2003 at 20:04 UTC ( #314396=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Sorting a subset
in thread Sorting a subset

You're probably right. I was going to point out the same thing, but then I noticed that the OP specifically did a numerical sort on the front-truncated string, which made me think that the original array might be something on the lines of:

qw ( A100 B57 X22 A9 A12 A3 C2 )

But who knows? ;-)

dave

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Sorting a subset
by BrowserUk (Pope) on Dec 12, 2003 at 20:13 UTC

    Looking back at the OP, you're right, he did originally use <=>, but then changed to cmp in the later post to which I responded..


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "Think for yourself!" - Abigail
    Hooray!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://314396]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2020-07-13 15:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?