http://www.perlmonks.org?node_id=1199170


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 (Archbishop) 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