Sorting of new dates map isn't deterministic

Created on 24 September 2025, about 1 month ago
Updated 7 October 2025, 18 days ago

Problem/Motivation

In rare cases, the new dates map might produce duplicate results at the end of the list, due to an indeterministic sorting.

<!--break-->

Steps to reproduce

Consider this scenario:

  • There are two date items (A and B) in the list that have the same start date and time.
  • Those dates are at position 60 and 61 in the list
  • When opening a page with the new dates map, the first 60 items are shown initially, containing A at the end
  • After a few seconds, a second date item for A is added at position 61

This is caused by the somewhat strange algorithm that consecutively loads all date items completely, even if that information is only needed for the map markers. When data is loaded for page 1 (the second call), item A is erroneously returned as the first item, because it has the same start date and time as item B.

Proposed resolution

Add some more sort criteria to make the sorting deterministic:

  • End date
  • Title

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.5

Component

Code

Created by

🇩🇪Germany mrshowerman Munich

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024