Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Chronological Ordering of Nodes with the Same Timestamp

by QM (Parson)
on Sep 12, 2017 at 08:05 UTC ( #1199170=note: print w/replies, xml ) Need Help??


in reply to Chronological Ordering of Nodes with the Same Timestamp

... || $a->{node_id} <=> $b->{node_id}

Just curious...do you have any evidence or suspicion that the sort is intentionally reversed? Ala:

... || $b->{node_id} <=> $a->{node_id}

-QM
--
Quantum Mechanics: The dreams stuff is made of

Replies are listed 'Best First'.
Re^2: Chronological Ordering of Nodes with the Same Timestamp
by kcott (Chancellor) on Sep 12, 2017 at 08:22 UTC

    G'day QM,

    "Just curious...do you have any evidence or suspicion that the sort is intentionally reversed?"

    No. I have neither evidence nor suspicion of that. As stated: "I've no idea of the code behind this".

    That was merely intended to suggest, in a Perlish way, that when there's no inherent ordering with whatever criteria is currently being used, ordering by node ID be used.

    It was in no way intended to be any sort of patch; just a rough suggestion: "something akin to this ...".

    — Ken

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1199170]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2018-01-20 07:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (226 votes). Check out past polls.

    Notices?