Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: sorting an array

by pKai (Priest)
on Jul 10, 2009 at 11:59 UTC ( #778907=note: print w/replies, xml ) Need Help??

in reply to sorting an array

map {'ch'.(0+$_)} sort map {sprintf "%.10u", /(\d+)/} @array;

just for the sake of using a technique of Advanced Sorting - GRT - Guttman Rosler Transform, i.e. make a map sort map but with a bare/string sort.

Of course, a pack 'N' would be preferable over the sprintf.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://778907]
[Corion]: marto: It somewhat makes sense that the reduced popup window doesn't get new URLs, but it makes less sense that no new browser window opens :)
[marto]: Corion, yeah, why no new browser window opens is currently beyond my understanding
[marto]: thanks
[Corion]: marto: Maybe it opens offscreen? I wouldn't know an easy way to confirm that, except maybe closing the chromeless window and then looking whether iexplore.exe is still running

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2018-03-21 11:55 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (267 votes). Check out past polls.