Opened 7 months ago
#24257 new defect
Memberships Conflict Dialog values are sorted ASCII-betically
| Reported by: | anonymous | Owned by: | team |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Core | Version: | |
| Keywords: | Cc: |
Description
In this screen
https://josm.openstreetmap.de/wiki/Help/Action/CombineWay#TagsMembershipsConflictDialog
when combining two address nodes with conflicting values of addr:housenumber, a value of 100 and 104 will be sorted like this in the dropdown (which is correct)
- 100
- 104
but a value of 100 and 96, will be sorted like this (which is incorrect, 96 is not greater than 100)
- 100
- 96
This is because they're sorted naively as text strings. The number part should be sorted as a number
https://blog.codinghorror.com/sorting-for-humans-natural-sort-order/


