Skip to content

front: fix operational-point sort stability#16977

Draft
hhirtz wants to merge 1 commit into
devfrom
uber/le-fi
Draft

front: fix operational-point sort stability#16977
hhirtz wants to merge 1 commit into
devfrom
uber/le-fi

Conversation

@hhirtz
Copy link
Copy Markdown
Member

@hhirtz hhirtz commented May 29, 2026

Follows #16799 (comment)

Before, if two operational points had the same name and both had main CH codes, sortOperationalPointsByNameAndCh would return contradicting results, e.g. A < B and B < A depending on the order of the arguments.

  • add tests in front/src/common/Map/Search/__tests__/sortOperationalPoints.spec.ts
  • add a repro in the description?

Before, if two operational points had the same name and both had main CH
codes, sortOperationalPointsByNameAndCh would return contradicting
results, e.g. A < B and B < A depending on the order of the arguments.

Signed-off-by: Hubert Hirtz <hubert@hirtz.pm>
@hhirtz hhirtz self-assigned this May 29, 2026
@github-actions github-actions Bot added the area:front Work on Standard OSRD Interface modules label May 29, 2026
@hhirtz hhirtz moved this to Awaiting merge in Board PI 20 May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:front Work on Standard OSRD Interface modules

Projects

Status: Awaiting merge

Development

Successfully merging this pull request may close these issues.

1 participant