Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Sometimes sorting by just the created time isn't enough (sometimes heartbeat items could be made several-to-a-second). To sort accurately by when they were added you'd need to order by the auto id column uaid.
Comment | File | Size | Author |
---|---|---|---|
#1 | heartbeat-add-sorting-to-uaid-1443716.patch | 739 bytes | nicholasThompson |
Comments
Comment #1
nicholasThompsonPatch (can be applied using git apply).
Comment #2
Stalski CreditAttribution: Stalski commentedCan you tell me how you got identical timestamps? This should not happen.
If you are doing imports or such on cron, please use time() insteadof $_SERVER['request_time'] so all activity is different.
However, I think in drupal 6 I did it that way.
Comment #3
Stalski CreditAttribution: Stalski commentedI pushed the extra sort handler to git. Thx
Comment #4
nicholasThompsonThanks :)
FYI, the identical timestamps are usually caused (in my case) by cron-invoked rules actions.