Skip to content

fix(geo): use strict weak ordering in sortGeoPointDESC comparator#3439

Merged
PragmaTwice merged 2 commits intoapache:unstablefrom
songqing:fix/geo-sort-desc-strict-weak-ordering
Apr 10, 2026
Merged

fix(geo): use strict weak ordering in sortGeoPointDESC comparator#3439
PragmaTwice merged 2 commits intoapache:unstablefrom
songqing:fix/geo-sort-desc-strict-weak-ordering

Conversation

@songqing
Copy link
Copy Markdown
Contributor

@songqing songqing commented Apr 10, 2026

The GEO sort DESC comparator used >= instead of >, violating the strict weak ordering requirement of std::sort and causing undefined behavior when elements have equal distances.

@PragmaTwice PragmaTwice enabled auto-merge (squash) April 10, 2026 04:06
@PragmaTwice PragmaTwice merged commit 94e4c8e into apache:unstable Apr 10, 2026
72 of 74 checks passed
@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants