Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: Re: Re: Sorting on different fields

by mkmcconn (Chaplain)
on Jul 23, 2002 at 14:38 UTC ( #184429=note: print w/replies, xml ) Need Help??

in reply to Re: Re: Sorting on different fields
in thread Sorting on different fields

There is nothing obvious about what's going on there, rchou2. Although it solves your problem (I think), it's not a very good answer because it's hard to explain and to understand. That's nothing in my favor - I can't immediately think of the way I would have done it before learning this trick.

Read more about the Schwartzian Transform to understand it. Especially, try to understand why it changes everything to remove the square brackets as you did in your cut and paste (you need them, to create the temporary arrays that are being used for sorting).

  • Comment on Re: Re: Re: Sorting on different fields

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2023-02-06 13:47 GMT
Find Nodes?
    Voting Booth?
    I prefer not to run the latest version of Perl because:

    Results (34 votes). Check out past polls.